Execute php script in a bat file: Difference between revisions

Jump to navigation Jump to search
m
Line 23: Line 23:


== Example bat file ==
== Example bat file ==
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.
Condition 1: 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 33: Line 33:
</pre>
</pre>


Condition2: The DOS window was NOT closed automatically. It might annoying if there are too many window.
Condition 2: The DOS window was NOT closed automatically. It might annoying if there are too many window.
<pre>
<pre>
@ECHO OFF
@ECHO OFF

Navigation menu