About the title: PHP + BAT making PHP self-resolution batch processing is a BAT file that contains dos bat batch processing code and php cli code. Because the suffix is BAT, I click BAT on the WIndows system to run it.
Title: php bat self-resolution batch processing
That is, a BAT file contains dos bat batch processing code and php cli code. Because the suffix is BAT, I click BAT on the WIndows system to run it.
Because I have done some special processing on PHP, it can use the PHP CLI to parse its own PHP commands.
Usage:
For example, if you want to make a PHP-CLI release package, you can refer to this script for your own installation program.
Original code:
Filename: phpbat. bat
Code:
@ REM @ REM ='
@ Set phpcli = F: \ usr \ local \ php4 \ php.exe
@ REM phpclishows the path of your clim php.exe.
@ % PHPCLI % 0
@ Goto: EOF
@ REM ';?>
Echo '\ rHello World ';
Exec ('pause ');
?>
A little clarification, the wonderful application of the BAT batch processing of REM instructions and PHP ''to define the string method, so that the two are mixed, and complementary interference.