ok, I've made a version for you.
php code download (978 bytes):
Code:
http://www.mediafire.com/?1brnmhb544qfodc
VT: Clean
Code:
http://www.virustotal.com/file-scan/report.html?id=1dd7f7bc4b94b614efce97718a97f4391de082eebc2914b52c1f25327d8f97e5-1304450429
there is a list or urls in there in a file called pinger_urls.txt
Code:
http://www.google.com
http://www.ebay.com
http://www.yahoo.com
http://bbc.co.uk
hotmail.com
godaddy.com
bing.com
http://www.microcosft.com
I've set them with and without www. and http:// to test
you can use longer file paths too.
to use this with WP, simply do this:
1. download and unpack pinger.rar on your machine
2. exit pinger_urls.txt to hold your url list
3. upload pinger.php and pinger_urls.txt to your website, i put it in the main root folder, so http://yoursite.com/
you can now test that all is good.
simply visit
Code:
http://www.yoursite.com/pinger.php
you will see nothing on the screen, this is normal, it returns nothing as it's meant to be called from inside other pages
if you look in the folder where you put the files, you should now see pinger_urlcounter.txt has been made
Everytime you call the pinger.php the number in this file will increase, up to the url count in your pinger_urls.txt file, then back to 0
everytime you call pinger.php it pings a website from your url list in the background.
Now to make it work in WP:
I tested it by calling it from the footer file, but you could use any - for example only on certain posts or the main page etc
- go to your WP dashboard.
- then Appearance
- Editor
- now select the file to locate it in - I used footer.php in my test
- now in the top of the file
AFTER the <?php insert this
Code:
require_once("http://www.yoursite.com/pinger.php");
Dont forget to change the url to where you placed pinger.php file !!
- then click the Update File button
thats it.. done
everytime a page is visited, the pinger.php is called, you can monitor this by watching the count change in the pinger_urlcounter.txt file
you don't need to ftp etc for that, just call it from the browser:
Code:
http://yoursite.com/pinger_urlcounter.txt
enjoy..
Si