Jump to content

Archived

This topic is now archived and is closed to further replies.

mastertofue

Can't delete permissive files.

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites
Do you have shell access to the acount? What do you see with?

[code]
ls -l
[/code]

Share this post


Link to post
Share on other sites

×

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.