I Can Not Delete Files

liunx

Guest
Hello, <br /><br />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)<br /><br />Is it secure to give write persions to public?<br /><br />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?<br /><br />Thanks.<!--content-->
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.<br /><br />Welcome to the forum and family, fs5! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Moving for organization<!--content-->
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->You will have to open a help desk ticket to support (link above) to have those files removed.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Hello! <br /><br />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 <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> <br /><br />Isn't there a better way to do this?<br /><br />Thanks.<!--content-->
Since a php script owns the file,<br />have you tried making another php script to remove the files?<!--content-->
<!--QuoteBegin-TCH-Don+Nov 6 2004, 08:29 PM--><div class='quotetop'>QUOTE(TCH-Don @ Nov 6 2004, 08:29 PM)</div><div class='quotemain'><!--QuoteEBegin-->Since a php script owns the file,<br />have you tried making another php script to remove the files?<!--QuoteEnd--></div><!--QuoteEEnd--><br /> 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.<!--content-->
 
Back
Top