Communication of the backend via php
Posted: Thu Feb 23, 2006 9:21 am
I have no ideas for following question, please tell me the solution. Wait for your helps!!!
Under the backend, how to edit the receive.php which will transfer parameters to following IP address(virtual) automatically while it get the info from gateway?
http://2.2.2.2/retrieve.php?sp=100&msg=ok
Assume following IP address (virtual) will not be opened by any browsers.
http://1.1.1.1/receive.php
And the backend of gateway will send php program the parameters $sp=100 and $msg=ok. The gateway will transfer them via POST with trigger. Meanwhile the receive.php will get data from gateway automatically, and insert them to MySQL...........
Remark:
1)the function header(sprintf(“location:%s”,$insertGoTo)); is not workable, and any methods of jumping are no execution for browser.
2)my goal is establish the connection between gateway and the IP address http://2.2.2.2/retrieve.php for exchange of the info.not means between IP addresses( http://1.1.1.1/receive.php and http://2.2.2.2/retrieve.php).
Under the backend, how to edit the receive.php which will transfer parameters to following IP address(virtual) automatically while it get the info from gateway?
http://2.2.2.2/retrieve.php?sp=100&msg=ok
Assume following IP address (virtual) will not be opened by any browsers.
http://1.1.1.1/receive.php
And the backend of gateway will send php program the parameters $sp=100 and $msg=ok. The gateway will transfer them via POST with trigger. Meanwhile the receive.php will get data from gateway automatically, and insert them to MySQL...........
Remark:
1)the function header(sprintf(“location:%s”,$insertGoTo)); is not workable, and any methods of jumping are no execution for browser.
2)my goal is establish the connection between gateway and the IP address http://2.2.2.2/retrieve.php for exchange of the info.not means between IP addresses( http://1.1.1.1/receive.php and http://2.2.2.2/retrieve.php).