Hai Jason, Thanks a lot for the reply.
you are right I call the perl script in form page. How to output a meta refresh tag from PHP? and is it in form or in the main page? In form page after I call the perl script which changes the IP address of the server, I have header("Location:https://$HTTP_HOST/mainpage.php"); ( I use https) which tries to redirect to main page. Can you please explain me where should I output meta refresh tag. Is the meta refresh tag is the same as the one I have in HTML. <meta http-equiv="refresh" content ="15"> regards, adharsh. Jason Wong wrote: > On Wednesday 27 November 2002 15:52, Adharsh Praveen R wrote: > > hai php-general, > > > > I want to know how can I redirect the browser to contact to a new ip > > address of the same server. > > > > In Detail > > > > I have a server say 192.168.1.10 (eth0) running apache.( Linux Machine > > running Apache). > > > > I contact the server through a client(Browser), through this client > > I change the > > > > IP address of the server, from 192.168.1.10 to 192.168.1.15. > > > > > > (After entering IP Address in the text field and clicking on the button > > save I call > > Presumably this is done in a form and submitted to a php page which then calls > your perl script? > > > a perl script which calls ifconfig to change the address,perl script is > > called with exec() ). > > > > > > After few seconds I get "Page cannot be found" message as the browser > > tries to contact > > > > the old IP address. > > > > How can I make the client point to the new IP address of the same > > server? > > Have your php output a meta refresh tag. > > > I can show the code also. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Encyclopedia for sale by father. Son knows everything. > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php