Can't delete permissive files.
Posted 17 August 2006 - 06:14 AM
Here's the deal, I've been reading and working through the PHP for Dummies book, and I learned pretty much everything it could talk about dealing with Uploaded files. I have a friend that needs to upload me a file larger than 1 gig but I don't want to give him FTP access. I know how to change the php.ini file to deal with the MAX_FILE_SIZE and that's not my problem. When I tested my upload form, it worked fine. But when I went in to my FTP to delete the added files it says that I don't have permission to do so.
I tried the unlink() function, but that came back with an error :
Warning: unlink(TestFile.pdf): No such file or directory in /home/content/J/o/r/JordanSavant/html/upload/delete.php on line 3
My server hosting is run through GoDaddy so I'm assuming they are the only ones with the root permission to delete them normally.
Is there any other way to delete the files, or a way to change permissions?
Posted 17 August 2006 - 06:17 AM
ps: I wouldn't recommend uploading anything above 250mg using http, its not made for it. FTP (file transfer protocol) on the other hand is.
Posted 17 August 2006 - 06:31 AM
But never the less, I need to delete those files I tested. As far as ownership goes, I'm the one who bought the domain and hosting with GoDaddy, and I'm the only one with the FTP credentials for access. But I'm assuming that it requires root access to delete, therefore making the folks at Godaddy the "owners".
The permissions are read only, so I can view images and such if I link to them.
Thanks for the hasty response!
Posted 17 August 2006 - 06:56 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users