5
I have a PHP code that uses FSOCKOPEN
to check the port of a server, and depending on the answer it logs in log... But for this the page has to always stay open, I would like to know if there is any way for me to leave this running automatically on the server without user interface...
Today for it to work I leave an HTML tag updating the page every 10 seconds... But as I said, to run the page always has to be open!
I think you have to use crontab, with that you schedule the times to run your script.
– Raylan Soares