Portal Home > Knowledgebase > Articles Database > php passthru() works from PHP CLI but not web
Posted by renegadeavenger, 11-16-2008, 01:19 AM php passthru() works from PHP CLI but not web I have a script which I use to restart processes and I am trying to make it work by clicking a button on the word. It works from running it from php command line but I can never seem to get it to work through the click of a button. Does anyone know what may be the cause of this? here is some other observations: old php version 4 seems to work fine, but ever since around 4.3+ it just won't work from the web. php code is simple its just passthru('/etc/init.d/startprocess') __________________GameWarrior.net - Bringing Gaming To The Next LevelGamingMonkeys.com - Come Play Fun Flash Games !
Posted by ZoomS, 11-16-2008, 02:03 AM Make sure that safe_mode is not enabled and the user you run this script from has the access to the script (/etc/init.d/startprocess) you want to run through it.
Add to Favourites Print this Article