php exe from cli, but no web

From: Date: Tue, 31 Mar 2009 22:28:17 +0000
Subject: php exe from cli, but no web
Groups: php.general 
Request: Send a blank email to php-general+get-290907@lists.php.net to get a copy of this message
Hi, I won't be redundant by saying I'm new to PHP, so I won't :) The following code works by doing; php file.php contents of file.php; <?php exec('/usr/bin/ssh user@host "nohup perl /perlscript&"'); ?> * I config'd this ssh user to not need a password, copied its key. I place this file off of web root and point my browser to web root and type the file name; http://mywebroot/file.php but it doesn't exe. I'm not expecting to see a screen full, but I check to see if the perl script runs on the remote host, and it doesn't. All is well from a CLI. Any suggestions are greatly appreciated, - aurfalien

« previous php.general (#290907) next »