Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top