PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
exec (or popen etc) doesn't work when called from a standalone (commandline) PHP app but does if called from a browser (running under the web server) eg.
outputs nothing (even if su) if called from commandline eg php myapp.php. But it works as expected if called from a browser http;//myserver.com/myapp.php.
OS is Solaris 10. Is this a permissions problem? Can't see how if I'm su.
Thanks
Last edited by Benjamin on Fri May 29, 2009 10:36 am, edited 1 time in total.
Reason:Changed code type from text to php.
Its a twitter service that can take 10 minutes get the latest tweets, DMs, local news, weather etc. Its a an async call so the main server continues running whilst gathering the above data eg 'php getAsyncdata.php > /dev/null &'