Execute php script in a bat file: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 23: Line 23:


== Example bat file ==
== Example bat file ==
Condition1: The DOS window was NOT closed when PHP script which implemented [http://php.net/manual/en/function.exit.php exit()] and returned error.
Condition1: The DOS window was NOT closed automatically when PHP script which implemented [http://php.net/manual/en/function.exit.php exit()] and returned error.
<pre>
<pre>
@ECHO OFF
@ECHO OFF
Line 40: Line 40:
PAUSE
PAUSE
</pre>
</pre>


== Application: Run the PHP script automatically at a specified time ==
== Application: Run the PHP script automatically at a specified time ==

Navigation menu