Title: PHPBAT is a BAT file that contains dos bat batch processing code and php cli code. Because the suffix is BAT, I click it on WIndows to run it automatically. Because I have done some special processing on PHP, it can use the PHP CLI to parse the title: PHP BAT to make PHP 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 it on WIndows to run it automatically.
Because I have done some special processing on PHP, it can use the PHP CLI to parse its own PHP commands.
Purpose:
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 phpcli the path of your clim php.exe
@ % PHPCLI % 0
@ Goto: EOF
@ REM ';?>
Echo "\ rHello World ";
Exec ("pause ");
?>
One note is that it uses the BAT batch processing REM command and the PHP ''to define the string, so that the two are both in one and complement each other.