[pmwiki-users] Delete Uploaded File

Wendell Brown wbrown at arkie.net
Thu Nov 3 13:32:17 CST 2005


Waylan Limberg wrote:
> On 11/2/05, Allyen E. Wilson <awilson at allyenwilson.com> wrote:
>   
>> Thanks for the reply. I tried using ftp and got the response to the
>> effect "file can not be deleted" so I tried to change permissions for
>> the file and ftp said it could not change the permissions.
>>     
> Hmm, sounds like you might want to address the permissions issue with our host.
>   
The file is probably owned by the web server (technically it would be 
the user the web server is running as, but the point is basically the 
same).  You will either need to get an FTP account that has root access 
(not too likely in a shared hosting environment) or you will need to get 
the web server to delete the file.  Probably the easiest thing to do is 
to write a 1 line php program, upload the script to the server (using 
FTP) and then run it from the browser.

<?php unlink( "/home/myfolder/myfile" ); ?>

Hope this helps.




More information about the pmwiki-users mailing list