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. Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted January 20, 2011 Share Posted January 20, 2011 echo ini_get('memory_limit'); Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.