Hi,
I am developing a simple form to upload a resume in PHP. I am using the http file upload to upload the file into the server directory. A database entry stores the file path of the resume file. When the admin deletes the entry from the database, i am unlinking the file also, to delete it. This works fine on my Win98/Apache/PHP4/MySQL system.
When i upload onto the Linux/Apache/PHP3(4)/MySQL server, i get permission errors. I am still able to save the files by using fopen with ftp (with the username and password!) is this a good way ? But still i am not able to delete the file, as the unlink command does not accept ftp.
I finally got it working by setting permissions to the directory to 777. But i am sure this is not the right way ...
Please help...
I have read that a setting of 755 should work. how ?
When a script is loaded into a directory via ftp, and then run over a browser, who is the user running the script for linux ? The user who uploaded the script (via ftp )? then why doesnt 755 work. Please explain ...
I am sure this is a dumb question, but please help me...
Thanks a million for your help in advance.