Re: [PHP] Copying Files to the Web Directory

2001-02-27 Thread Miles Thompson
Jason, Thanks for the reply, and you confirmed that I'm caught between the devil and the deep! At the same time, it's good to know that permissions work! As my client is real twitchy about changing directories, etc. I guess I'll write a little script to do all this and he can run it from his h

Re: [PHP] Copying Files to the Web Directory

2001-02-26 Thread Jason Cox
PHP runs as the webserver user which in most cases is user nobody. For PHP to write to a directory, it has to be writable to this directory. A possible solution would be to compile a PHP executable and run a script from cron to copy the files periodically. By using cron and a cgi-version of PHP