Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Assuming you need to do this on linux, you may run any php script from the browser and from the CLI as well.</p> <p>You may run a simple php script: <code>&lt;? echo "Ana are mere"; ?&gt;</code></p> <p>like this: <code>php -f ./index.php</code></p> <p>Be careful about file-permissions, and any bug that may creep inside your code, memory leaks or unallocated variables will become VERY visible now, as the process will run continuously.</p> <p>If you dont want it running in the background all the time, take a look at crontab (<a href="http://unixgeeks.org/security/newbie/unix/cron-1.html" rel="nofollow noreferrer">http://unixgeeks.org/security/newbie/unix/cron-1.html</a>) to be able to start jobs regularly.</p> <p>-- edit--</p> <p>take a look at <a href="https://stackoverflow.com/questions/45953/php-execute-a-background-process">php execute a background process</a> and <a href="https://stackoverflow.com/questions/122834/php-how-to-return-information-to-a-waiting-script-and-continue-processing">PHP: How to return information to a waiting script and continue processing</a></p> <p>Basically you want to start a background process, and you may do this by either using exec() or fsockopen() or a file_get_contents() on your own script probably in this order, if don't have access to exec, or socket functions. Also take a look at <a href="http://us2.php.net/manual/en/function.session-write-close.php" rel="nofollow noreferrer">http://us2.php.net/manual/en/function.session-write-close.php</a> so the "background script" won't "block" the request and <a href="http://us2.php.net/manual/en/function.ignore-user-abort.php" rel="nofollow noreferrer">http://us2.php.net/manual/en/function.ignore-user-abort.php</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload