Jump to content

Can't delete permissive files.


mastertofue

Recommended Posts

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 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?
Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.