mastertofue Posted August 17, 2006 Share Posted August 17, 2006 Hows it going? (I'm a newb, PHPing for about 2 weeks now.)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 [b]I don't have permission[/b] 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 3My 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? Link to comment https://forums.phpfreaks.com/topic/17814-cant-delete-permissive-files/ Share on other sites More sharing options...
trq Posted August 17, 2006 Share Posted August 17, 2006 Who is the owner and what are the permissions on the files?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. Link to comment https://forums.phpfreaks.com/topic/17814-cant-delete-permissive-files/#findComment-76064 Share on other sites More sharing options...
mastertofue Posted August 17, 2006 Author Share Posted August 17, 2006 Yeah, the more I think about the less I like the idea of transferring the file via upload form.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 [b]read only[/b], so I can view images and such if I link to them.Thanks for the hasty response! Link to comment https://forums.phpfreaks.com/topic/17814-cant-delete-permissive-files/#findComment-76077 Share on other sites More sharing options...
trq Posted August 17, 2006 Share Posted August 17, 2006 Do you have shell access to the acount? What do you see with?[code]ls -l[/code] Link to comment https://forums.phpfreaks.com/topic/17814-cant-delete-permissive-files/#findComment-76084 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.