The above behavior is on the Linux machine. Now, I run the same script on my windows box and it works perfectly.
windows has (afaik in its default settings) no good file-permissions.
the php-scripts usually run as the user the webserver runs as ...
so the webserver-user has to have write-permissions on the directory it needs to write to.
so either chown (change the owner) or chmod (change the permissions to be writable for the group or even other if needed) the directory.
thomas
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php