Changes between Version 5 and Version 6 of PHP


Ignore:
Timestamp:
Nov 13, 2012, 8:50:07 AM (7 years ago)
Author:
burek
Comment:

added images

Legend:

Unmodified
Added
Removed
Modified
  • PHP

    v5 v6  
    1313What you want to do is to separate the command-line tool's long processing from your web script execution, to make your script more responsive. So, you have at least 2 options:
    14141. Run the command-line tool (using [http://php.net/manual/en/function.shell-exec.php shell_exec()] for example) in the background and continue with the web script execution, periodically refreshing the status page, showing the current progress
     15 
    1516 [[Image(ffmpeg_php_1.png)]]
    16172. Create a new "job" (usually a new row in a table of your database) and have some background "worker" process (cron job, shell script, batch script) that will monitor that "job list" to see if there are any new jobs that need processing
     18 
    1719 [[Image(ffmpeg_php_2.png)]]
    1820