I will resume the work to do and explain a little more what I want.
My mysql table:
CREATE TABLE `listeIp` (
`id` int(15) unsigned NOT NULL auto_increment,
`Ipadress` varchar(20) default '0',
`port` int(6) NOT NULL,
`InsertDate` date NOT NULL default '0000-00-00',
`Type` varchar(8) NOT NULL default 'proxy',
`LastCheck` datetime NOT NULL,
`Status` varchar(11) NOT NULL default 'NotVerified',
PRIMARY KEY (`id`),
UNIQUE KEY `Ipadress` (`Ipadress`)
The script must connect to my database and select all the ip adresses with their port and test 600 adresses simultanously.
Some entries are added during all the day.
The number of adresses to test simultanously must be in setup in a variable, so that I can change this value at anytime.
The timeout will be set to 25 seconds.
- If the distant server is online, his ip and port will stay in the database and the field "Status" will be updated to Verified and the field "LastCheck" will be updated too.(date+time)
- If the server is down, his entry will be deleted from the database.
The script will run like a daemon and test all adresses continuously.
You must create a text file to explain how to setup the script on a server: dedicated or not.
You must eventually install the script.