Re: [PHP] deleting files on Windows...permissions issue
Hi there! Are you using rmdir? http://se2.php.net/manual/en/function.rmdir.php /G @varupiraten.se - Original Message - From: "James" <[EMAIL PROTECTED]> To: Sent: Friday, September 02, 2005 6:45 PM Subject: [PHP] deleting files on Windows...permissions issue I have a php script that can delete files in a folder but it can not delete the folder itself. I've tried to play around with permissions on the Windows box and couldn't set it to something that would allow the PHP script to delete the folder. I think I even tried to set the permissions for the folder's parent folder. This PHP script is called from a browser. What user does the PHP script run as when served up by Apache on Windows? (once I have this answer, I can set the owner of the folder to this user and give that a shot) -- -James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] deleting files on Windows...permissions issue
I have a php script that can delete files in a folder but it can not delete the folder itself. I've tried to play around with permissions on the Windows box and couldn't set it to something that would allow the PHP script to delete the folder. I think I even tried to set the permissions for the folder's parent folder. This PHP script is called from a browser. What user does the PHP script run as when served up by Apache on Windows? (once I have this answer, I can set the owner of the folder to this user and give that a shot) -- -James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Deleting Files
At 19:14 08.03.2003, Vernon said: [snip] >I need to have files that exist within a folder on my server based on the a >MySQL record that contains it's name. What command would I be looking for in >the php functions list? Anyone? [snip] Sorry, just saw you wanted to DELETE the files... It's "unlink($filename);" Note you need to have write access to the directory (not only the file) to delete it. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Deleting Files
At 19:14 08.03.2003, Vernon said: [snip] >I need to have files that exist within a folder on my server based on the a >MySQL record that contains it's name. What command would I be looking for in >the php functions list? Anyone? [snip] file_exists($filename); -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Deleting Files
I need to have files that exist within a folder on my server based on the a MySQL record that contains it's name. What command would I be looking for in the php functions list? Anyone? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Deleting files?
Hey guys. Any insight into this problem im experiencing would be much appriciated... I installed some software on my web space a while back, I ran a script and it extracted some files from a tar ball I had uploaded. This was all designed to make the package easy to install and set up. The idea being you just uploaded the tarball and a script to set it all up. The web server does the rest. Well now I have a problem that I am trying to delete them. I cant delete them using my FTP access to my web space, because I dont have the right permissions. I wrote a script to tell me information about these files, it reports back that the owner is "apache" and the group is "apache". I wrote a simple script something like this: This doesnt work on files that I own, let alone files that the web server owns in my user space. What am I doing wrong? Thanks in advanced. Matt