How to execute a PHP script even with the browser closed [closed]

0

I need a script in php to run even with the browser closed. Is there a possibility?

I'd like some suggestions.

Thank you!

    
asked by anonymous 15.03.2016 / 23:52

1 answer

1

I use php scripts in the background using linux.

just put

#!/usr/bin/php -q
<?php
// CODIGO PHP

and put your php code.

Then you configure your linux crontab to run your script at certain times and / or days.

    
16.03.2016 / 00:03