PHP SCRIPT TO DELETE FILES ON SERVER?
(OR how to set up a script that ONLY deletes the contents of a folder and NOT the folder itself)
Objective: You need to create a PHP script and place it in your ROOT directory
Disclaimer: Read directions and MAKE SURE your path is correct or you could end up deleting stuff you didn’t want to
(in other words run a test after you’ve backed up your site)
You need to create a PHP script and place it in your ROOT directory
1- to do this, create a text document and paste in the following code: Continue reading PHP Script to Delete Files on Server (from a folder)
You can create a quick file that you can run by typing in the URL, to see what version of PHP is being run.
This has been helpful when I need a quick answer and the ISP is slow on updating their posted stats
1- Create a text file and name it “php-checker.php”
2- Add this bit of code to it Continue reading What PHP Version is My Server/ISP Running?