Re: chown()
| From: | Evan Nemerson | Date: | Thu, 23 Jan 2003 06:30:33 +0000 |
| Subject: | Re: chown() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132751@lists.php.net to get a copy of this message | ||
what does posix_getlogin() return? perhaps you aren't really running the
script as root...
On Wednesday 22 January 2003 08:05 pm, Urb LeJeune wrote:
> Has anyone had success in changing the ownership of a directory
> for within a PHP script? I am running as root an have tries
> exec()
> passthru()
> `` back ticks
> system()
>
> This works fine in a Perl script:
>
>
chown egovdemo:nobody /home/e-govdemo/htdocs;
>
> They are back ticks. Same line in the PHP script does nothing.
>
> Any insight would be appreciated.
>
> Urb