Another option is to use ftp functions.

John W. Holmes wrote:

i had a few problems with mkdir() ane uploading files using php.

i have a simple script, which is making a dir. but everytime, it
makes a dir with totally wrong user. chown wont work.

any expirience with this?? i have found some older posts
considering this, but no real answers. i think, the problem is
probably in httpd.conf (apche config file), but i am not sure.

That's normal. PHP runs as the Apache user, so anything it creates will
be owned by that user. Workaround is to use CGI mode or make the dir 777
so you can still access it.
---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to