Re: access a file
| From: | Curlys | Date: | Fri, 13 Aug 2004 10:14:55 +0000 |
| Subject: | Re: access a file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193680@lists.php.net to get a copy of this message | ||
-rwxr-xr-x 1 root root 133 Aug 13 15:48 zeed.php
group and owner like this ,
how does it workable ....plz help
thanx
curlys
----- Original Message -----
From: "John Holmes" <holmes072000@charter.net>
To: "Curlys" <curlybraces@dialogsl.net>
Cc: "PHP" <php-general@lists.php.net>
Sent: Friday, August 13, 2004 7:13 PM
Subject: Re: [PHP] access a file
Curlys wrote:
> 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
?
The PHP script runs as the Apache user, which is generally 'nobody', so
it probably doesn't have permission to execute the requested command.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com