DenBorn Posted January 20, 2011 Share Posted January 20, 2011 Debian 5 PHP 5.2.6-1 This script works: <? $output = shell_exec('ls -lart'); echo "<pre>$output</pre>"; ?> This script doesn't work: <? $vars=unserialize(file_get_contents("file.txt")); $output = shell_exec('ls -lart'); echo "<pre>$output</pre>"; ?> I get error: Warning: shell_exec(): Unable to execute 'ls -lart' or Warning: system(): Unable to fork [ls -lart] If file.txt has size 500k, the script works without errors. But my file file.txt has size 30M. Help. Link to comment https://forums.phpfreaks.com/topic/225062-shell_exec-doesnt-work-after-unserialize/ Share on other sites More sharing options...
AbraCadaver Posted January 20, 2011 Share Posted January 20, 2011 echo ini_get('memory_limit'); Link to comment https://forums.phpfreaks.com/topic/225062-shell_exec-doesnt-work-after-unserialize/#findComment-1162540 Share on other sites More sharing options...
DenBorn Posted January 20, 2011 Author Share Posted January 20, 2011 No I used Debian x86_64. May be bug. I installed Debian x86. The script works good. Link to comment https://forums.phpfreaks.com/topic/225062-shell_exec-doesnt-work-after-unserialize/#findComment-1162652 Share on other sites More sharing options...
gizmola Posted January 20, 2011 Share Posted January 20, 2011 We don't have enough information to go on here. Were there any errors in any of the logs? Link to comment https://forums.phpfreaks.com/topic/225062-shell_exec-doesnt-work-after-unserialize/#findComment-1162656 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.