Jump to content


Photo

Can't delete permissive files.


  • Please log in to reply
3 replies to this topic

#1 mastertofue

mastertofue
  • New Members
  • Pip
  • Newbie
  • 2 posts
  • LocationDallas

Posted 17 August 2006 - 06:14 AM

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 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?
"Now we see but a poor reflection as in a mirror, then we shall see face to face. Now I know in part, then I shall know fully, even as I am fully known."

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 17 August 2006 - 06:17 AM

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.

#3 mastertofue

mastertofue
  • New Members
  • Pip
  • Newbie
  • 2 posts
  • LocationDallas

Posted 17 August 2006 - 06:31 AM

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 read only, so I can view images and such if I link to them.

Thanks for the hasty response!
"Now we see but a poor reflection as in a mirror, then we shall see face to face. Now I know in part, then I shall know fully, even as I am fully known."

#4 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 17 August 2006 - 06:56 AM

Do you have shell access to the acount? What do you see with?

ls -l





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users