Domanda

I'm running a php script with cUrl every 5 minutes. Now I would like to run this script from a remote server.

for example on server 1 the script is in public_html/cron/cron.php on server 2 a cronjob is setup every 5 minutes.

when the cronjob is running which ip adress will be registered, from server 1 or server 2?

È stato utile?

Soluzione

the IP address will be the one from the server that initiates the request, so in your case it will be server 2.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top