homer.favenir Posted July 3, 2008 Share Posted July 3, 2008 hi, does php can locate a certain folder and delete the files when the page was uploaded?what function? please advice thanks Quote Link to comment Share on other sites More sharing options...
Wolphie Posted July 3, 2008 Share Posted July 3, 2008 What do you mean by 'delete the files when the page was uploaded?'? Quote Link to comment Share on other sites More sharing options...
homer.favenir Posted July 3, 2008 Author Share Posted July 3, 2008 when the page is loaded it will find a directory and delete the certain file. just like fopen, or file function. or it will change the content of a certain file. Quote Link to comment Share on other sites More sharing options...
homer.favenir Posted July 3, 2008 Author Share Posted July 3, 2008 my script is $dir = 'C:\Documents and Settings\All Users\Desktop\newfolder\\'; unlink($dir.'vserve.txt') but it has an error Warning: unlink(C:\Documents and Settings\All Users\Desktop\newfolder\vserve.txt) [function.unlink]: No such file or directory in C:\Program Files\xampp\htdocs\servtraq\daily_task_reportlist.php on line 255 localhost is not my PC, the localhost is from another PC. the program runs in another pc. but this script delete files in the server not on the client. i want, when the program runs, it will find a certain files on the user's workstation and delete it. please advice. thanks Quote Link to comment Share on other sites More sharing options...
TransmogriBenno Posted July 3, 2008 Share Posted July 3, 2008 You would have to have some sort of network mapping if you want a script running on machine A to be able to delete files on machine B. Quote Link to comment Share on other sites More sharing options...
homer.favenir Posted July 4, 2008 Author Share Posted July 4, 2008 how can i make network mapping using php? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.