Re: access a file
| From: | raditha dissanayake | Date: | Fri, 13 Aug 2004 09:57:41 +0000 |
| Subject: | Re: access a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193678@lists.php.net to get a copy of this message | ||
Curlys wrote:
hi , when run this script from the command prompt, it is working. <?php shell_exec ('killall -HUP abc.pl'); ?> <html> <body> Terminated the application ...........!!!! </body> </html> but , when it is put this file in a apache web server run via web browser ( accessing a URL with a Link ) it doesn't work . what should i have to do ? thanx curlys Could be several things, the most likely being that the process is owned by a user other than nobody other possibilities include the fact that you may be running in safe mode. You might want to look at sudo or suexec mechanisms as a solution. An alternative approach was suggested yesterday to a similar problem that involved cron jobs by another poster.-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.