Khan wrote:

Tom wrote:

shell_exec()


yes, I have try that but nothing happenes. here is my code. Is this correct?

<?php
shell_exec('/test/acct.sh');
?>

looks fine to me, except that I tend to run a check to make sure that it has run ok, like
$myReturn = shell_exec('/test/acct.sh');
or
if (shell_exec('/test/acct.sh');


On some systems you have to execute the script
eg
$myReturn = shell_exec('. /test/acct.sh');

Also make sure that the acct.sh script is executable by the php user
(chmod / chown are your evil friends :) )
Tom

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to