running a script exec command from php -
i have application need run php script exec() function of php.
"php /var/www/server/data/scripts/threadhandler.php 145596 > /var/www/server/data/logs/threads/thread.145596.log 2>&1 &"
also tried
"php /var/www/server/data/scripts/threadhandler.php 145596 > /var/www/server/data/logs/threads/thread.145596.log 2>&1 "
i running above command exec()
function of php, not getting run, can't track error. please suggest change.
try
passthru('php -f /var/www/server/data/scripts/threadhandler.php 145596 > /var/www/server/data/logs/threads/thread.145596.log 2>&1');
also, try run linux command line
Comments
Post a Comment