Auto update ip wan zeroshell for website.
Step1:
On the host he creates 1 database or can use the old database
Create an additional table with sql command
CREATE TABLE IF NOT EXISTS
client` (
Name
varchar(255) NOT NULL,
IP
varchar(255) NOT NULL,
LastUpdate
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
HttpPort
varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
`
Upload file modempcip.php for hosting of websiteyour
Download
Step 2:
1 / Open the STARTUP/CRON tab in System/setup
2 / Add a job and give a name
3 / After the #line, in a new line.
PUBLIC_IP=wget http://ipecho.net/plain -O - -q ; echo
URL=’http://websiteyour/modempcip.php?kh=deviceid&port=80&cmd=update&ip=’
wget $URL$PUBLIC_IP
4/ Choose time and date to start the script. Save it.
5/ Re-open the startup/cron tab to make a test (it’s better)
Step 3: Test
http://websiteyour/modempcip.php?kh=deviceid
That’s all