Jump to content

Posting Back Data


tommyboy123x

Recommended Posts

I need to send GET data from a server and have it originate from the server's IP.  The data will only be accepted on the condition that the IP address is the one on file... how can i do this?

 

I've been out of PHP for a few months and feel like this should be an easy task to accomplish but am having a little mental blocking.

Link to comment
https://forums.phpfreaks.com/topic/80536-posting-back-data/
Share on other sites

well that is sorta tricky, because some times cron doesn't run on your exact server.  Many times a shared server ends up having a bunch of people underneath 1 machine that has a bunch of nics in it to give some unique IPS, best bet is to make a cron job right now that stores to a text file the $_SERVER  and then compare this to what you know is your accepted IP on this other server.  If they match you are good.   

Link to comment
https://forums.phpfreaks.com/topic/80536-posting-back-data/#findComment-408372
Share on other sites

I don't have access to the server yet, but i'll report my findings here later.

 

Is it possible to do something like what is below?

 

if (header("location: http://google.com")){
//run SQL query to mark the data as "sent" to the other server
}else{
//error report
}

Link to comment
https://forums.phpfreaks.com/topic/80536-posting-back-data/#findComment-408448
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.