NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
michelefaccini
Dec 26, 2013Aspirant
phpshell 2.1 : fatal error
Hi all, I've just installed this addon (following the given procedure at http://www.readynas.com/forum/viewtopic.php?f=48&t=23254).
I get a fatal error due to Function ereg() is deprecated....here are phpshell.php file lines to be modified
/* Initialize the current working directory. */
if (ereg('^[[:blank:]]*cd[[:blank:]]*$', $command)) {
$_SESSION['cwd'] = realpath($ini['settings']['home-directory']);
} elseif (ereg('^[[:blank:]]*cd[[:blank:]]+([^;]+)$', $command, $regs)) {
Any php master out there to help me to update these scripts lines ?
I get a fatal error due to Function ereg() is deprecated....here are phpshell.php file lines to be modified
/* Initialize the current working directory. */
if (ereg('^[[:blank:]]*cd[[:blank:]]*$', $command)) {
$_SESSION['cwd'] = realpath($ini['settings']['home-directory']);
} elseif (ereg('^[[:blank:]]*cd[[:blank:]]+([^;]+)$', $command, $regs)) {
Any php master out there to help me to update these scripts lines ?
1 Reply
Replies have been turned off for this discussion
- michelefacciniAspirantOk...got the last version at http://phpshell.sourceforge.net/
No more error....
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!