 |
hellkvist.org Discussions about the free software on hellkvist.org
|
View previous topic :: View next topic |
Author |
Message |
rockwriter
Joined: 17 Sep 2005 Posts: 1
|
Posted: Sat Sep 17, 2005 1:24 pm Post subject: How can I delete files without using admin? |
|
|
I temporarily had problems with some pictures not showing that had uploaded succesfully. It was weird, because it had been working fine, then stopped. I did find a fix on this forum which worked, though (commented out lines in config.php that create thumbnails). Maybe my host changed the php installation???
Anyway.... now I have to photos that I uploaded while the problem was occuring. The directories exist in my msgstore directory and jpg files are there and all. However, they not only don't show up on the view.php page, but they also don't show up in the list on the admin page. This means I can't delete them from there. I tried deleting via ftp and through the web based file manager my host provides to no avail.
The problem is the owner of these files shows as "httpd", so the server thinks I'm not the owner and won't let me delete them. I tried creating an ftp user with that name, but for some reason the server keeps changing it to http0, so no luck with that work around. Any other suggestions? |
|
Back to top |
|
 |
Phree
Joined: 09 Nov 2005 Posts: 3
|
Posted: Thu Nov 10, 2005 6:07 pm Post subject: |
|
|
Rock,
The strange permissions are probably due to the Apache web server setup. Often, Apache is setup to run as an "apache" user or as "nobody". When that happens, any files it creates are owned by that user, and not by your user (you). The only way to delete the files is to then create a script that deletes them and run it from a web browser.
Try this:
Code: | <?php
unlink('/full/path/to/file.jpg');
?> |
Make sure you put the full path to your images and it should work. I had the same problem when I was trying my own uploading s/w and this is what I needed to do.
Good luck! |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|