fs5 Posted November 6, 2004 Posted November 6, 2004 Hello, I have a php script that creates some files. On my former host, the script could create files (using fopen fwrite commands) just by giving write permissions to the "owener". Here it seems that the php can not write files unless I give write persions to "Public". (CHMOD 777) Is it secure to give write persions to public? A side effect of this is that now I can not delete the files created by the php script using FTP (i get permission denied) What should I do? Thanks. Quote
TCH-Bruce Posted November 6, 2004 Posted November 6, 2004 You will have to open a help desk ticket to support (link above) to have those files removed. I don't know how you would create files with PHP that would make you the owner of the file. Maybe someone else can help with that. Welcome to the forum and family, fs5! Quote
fs5 Posted November 7, 2004 Author Posted November 7, 2004 You will have to open a help desk ticket to support (link above) to have those files removed. Hello! The problem is that I might need to do this very often. I don't think support would be very happy deleting my files several times every day Isn't there a better way to do this? Thanks. Quote
TCH-Don Posted November 7, 2004 Posted November 7, 2004 Since a php script owns the file, have you tried making another php script to remove the files? Quote
jandafields Posted November 8, 2004 Posted November 8, 2004 Since a php script owns the file,have you tried making another php script to remove the files? That definately works. I've done that plenty. Alternatively, you could make a php script to change the permissions on the file to 777, then delete/edit the file with FTP. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.