NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

michelefaccini's avatar
Dec 26, 2013

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 ?

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More