When safe mode is enabled, PHP checks whether the files or directories you
are about to operate on have the same UID (owner) as the script that is
being executed. In addition, you cannot set the SUID, SGID and sticky
bits.
It means that the UID (owner) of the folder ought to be the apache user or
the ftp user?
Whoever owns the php script (which would be the ftp user).
They need to match exactly (same user, same group).
You can relax safe-mode to check the same groups
(http://www.php.net/manual/en/features.safe-mode.php#ini.safe-mode-gid)
rather than the same user & group but that's up to the server admin / host.
move_uploaded_file will always fail because the file isn't uploaded
through a form. The documentation makes this rather clear (see also
is_uploaded_file).
The file realy was uploaded by a form and it is in the temporary upload
folder of php.
I misunderstood then.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php