This is a full website backup script including MySQL. It’s a bash script and it’s tested only on FreeBSD 6.3 but it should be working on any *BSD/Linux operation system. In order to make it work for linux you will need to change the paths for some commands. For example: #!/usr/local/bin/bash have to be changed […]
Tag: script
Googlebot notification
This simple script is going to notify you over e-mail when the Googlebot is on your website. Code: <?php if(eregi(“googlebot”,$HTTP_USER_AGENT)) { if ($QUERY_STRING != “”) { $url = “http://”.$SERVER_NAME.$PHP_SELF.’?’.$QUERY_STRING; } else { $url = “http://”.$SERVER_NAME.$PHP_SELF; } $today = date(“F j, Y, g:i a”); mail(“your@mail.com”, “Googlebot detected on http://$SERVER_NAME”, “$today – Google crawled $url”); } ?>
Howto increase the TTL value with iptables
To share the internet connection we have to make sure that the TTL value is bigger then 1. In case that the TTL is 1 we will have to increase it. This article is going to describe how to increase the TTL so the other machines behind your router will be able to use internet. […]
Howto see the PHP information
In order to see how is the PHP compiled and set on the server you can create a simple script. The first step is to create the script. You can create an empty file name phpinfo.php and put the following content into it: Code: <?php phpinfo(); ?> Once you put this into the file you […]