PemiPop Posted June 23, 2009 Share Posted June 23, 2009 I have several sites, but exec() only works on one of them. phpinfo() works so I know php is working. I've even tried using the php.ini from the working site, but to no avail. Is there something missing? Thanx ... Dave Link to comment https://forums.phpfreaks.com/topic/163386-cant-get-exec-to-work-in-php/ Share on other sites More sharing options...
JonnoTheDev Posted June 23, 2009 Share Posted June 23, 2009 Some hosts disable the use for security reasons if you are on a shared server. What are you trying to execute? If a php script you must make sure that php-cli is available on the server. Link to comment https://forums.phpfreaks.com/topic/163386-cant-get-exec-to-work-in-php/#findComment-862075 Share on other sites More sharing options...
PemiPop Posted June 23, 2009 Author Share Posted June 23, 2009 At this point, I'm just trying to run "/bin/date >/tmp/file" to make sure it works, but it doesn't. Eventually, I will run a query program that will read back the contents of an Informix database. This does work on one of my production servers. - Dave Link to comment https://forums.phpfreaks.com/topic/163386-cant-get-exec-to-work-in-php/#findComment-862078 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.