I configured a cron on my server to run a php script.
Within the crontab I ran the line:
curl http://localhost/atualizacoes/check-atualizacoes.php
It ran perfectly, but inside that php I have an if that calls an external page, which sends an email, tried using header, iframe and can not make it execute this second page.
If I run the page manually in my browser, it works normally, can someone tell me what I need to do?