1
I need a php script to run even with the browser closed. There is this possibility?
I would like some suggestions.
Thank you very much!
1
I need a php script to run even with the browser closed. There is this possibility?
I would like some suggestions.
Thank you very much!
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 set up your linux crontab to run your script at specified times and/or days.
Browser other questions tagged php script
You are not signed in. Login or sign up in order to post.
Do you have a server? already tried to use cron?
– Guilherme Lautert
Is there a way to use the
shell_exec
and use thenohup
, this way the process will remain active. It seems strange, but thequalquercoisa.php
can calloutracoisa.php
(or himself, but then create a loop) and will not be interrupted by disconnection. If this is ideal is another story. hahaahha– Inkeliz