Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Suppose you have a PHP script with the following contents (simple example here):

Code Block

 <?php

...


 phpinfo();

...


 ?>

To enable the Job Scheduler to execute this script directly, we need make only two changes to the script. First, add one line to the top of the script:

Code Block

 #!/usr/bin/php
Code Block

 <?php

...


 phpinfo();

...


 ?>

Note that the first line is an interpreter directive, which tells the operating system which program to load.

...