Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top