I m still confused
i hav wrote script to upload files , but now when i try to run that script it gives out error on the web server (www.f2s.com)
It says your user id is not the one which is required to upload the file. Hav anyone tried to upload files on F2s.com , i mean web based uploading not the FTP based ...
How can i control(upload/delete/create) files on f2s.com account???
Richard A. Rijnders wrote:
AFAIK "safe mode" is used by ISP's (who run PHP in CGI mode) to keep different users from accessing each other's scripts and files. This should not keep you from writing files in your own directories.
When PHP is running in safe mode, your scripts essentially run as "you" (your uid) rather than as the http server's uid (usually "nobody"). As such, you can only execute scripts that are owned by your uid OR that are in a directory that is owned by your uid.
If you can execute your scripts, but can't write files to the same directory that the script is in, chances are it has nothing to do with php's "safe mode" and everything to do with the server setup. If your sysadmin has your web site's directory configured with no 'write' permissions, then you wont be able to create files regardless of running in safe mode or not.
Maybe he thinks he has good reasons not to allow scripts to write files, but if you are a paying customer to his ISP, then he should find some other solution ....