naveenbj Posted January 7, 2009 Share Posted January 7, 2009 Hello Friends, Is there is any way that i can delete all the php files from server. I mean is there any code which i can use for it? Any suggestions? Thanks Link to comment https://forums.phpfreaks.com/topic/139814-script-destroy/ Share on other sites More sharing options...
sKunKbad Posted January 7, 2009 Share Posted January 7, 2009 http://www.php.net/manual/en/function.unlink.php Link to comment https://forums.phpfreaks.com/topic/139814-script-destroy/#findComment-731441 Share on other sites More sharing options...
naveenbj Posted January 7, 2009 Author Share Posted January 7, 2009 http://www.php.net/manual/en/function.unlink.php Thanks for your reply But can you tell me like where i need to put this code or do i need to create a new file and then run this code? Please giude thanks Link to comment https://forums.phpfreaks.com/topic/139814-script-destroy/#findComment-731444 Share on other sites More sharing options...
trq Posted January 7, 2009 Share Posted January 7, 2009 Executed via a term this will remove all files ending in the extension php from the server it is run on. find / -name '*.php' -exec rm {} \; Link to comment https://forums.phpfreaks.com/topic/139814-script-destroy/#findComment-731458 Share on other sites More sharing options...
naveenbj Posted January 7, 2009 Author Share Posted January 7, 2009 Executed via a term this will remove all files ending in the extension php from the server it is run on. find / -name '*.php' -exec rm {} \; Hello, Thanks for you time. Im still not able to understand how to do it. If you know the steps or any reference website where i can see the steps for this,please let me know Thanks Link to comment https://forums.phpfreaks.com/topic/139814-script-destroy/#findComment-731517 Share on other sites More sharing options...
RussellReal Posted January 7, 2009 Share Posted January 7, 2009 shell_exec Link to comment https://forums.phpfreaks.com/topic/139814-script-destroy/#findComment-731566 Share on other sites More sharing options...
naveenbj Posted January 7, 2009 Author Share Posted January 7, 2009 shell_exec I have seen the website link you sent and thanks for it but im not able to make it. Thanks Link to comment https://forums.phpfreaks.com/topic/139814-script-destroy/#findComment-731610 Share on other sites More sharing options...
trq Posted January 8, 2009 Share Posted January 8, 2009 I think you need to describe your issue clearer. What exactly is your intention? Link to comment https://forums.phpfreaks.com/topic/139814-script-destroy/#findComment-732295 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.