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 Link to comment https://forums.phpfreaks.com/topic/113048-delete-records-using-php/ 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?'? Link to comment https://forums.phpfreaks.com/topic/113048-delete-records-using-php/#findComment-580722 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. Link to comment https://forums.phpfreaks.com/topic/113048-delete-records-using-php/#findComment-580724 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 Link to comment https://forums.phpfreaks.com/topic/113048-delete-records-using-php/#findComment-580750 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. Link to comment https://forums.phpfreaks.com/topic/113048-delete-records-using-php/#findComment-580780 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? Link to comment https://forums.phpfreaks.com/topic/113048-delete-records-using-php/#findComment-581556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.