Ask a php question in a php file, including the following content #! /Usr/bin/php & lt ;? Php // my & nbsp; php code? & Gt; question A: Could you tell me this sentence "#! What does/usr/bin/php mean. Because we generally ask a php question through the http protocol in the browser.
A php file contains the following content:
#! /Usr/bin/php
// My php code
?>
Question A: Could you tell me this sentence "#! What does/usr/bin/php mean. Because we generally access the service through the http protocol in a browser.
Here, the file is called through an "embedded program" of ejabberd.
Question B: Based on question A, what should I do in windows?
Shared to: Question A: Could you tell me this sentence "#! What does/usr/bin/php mean. Because we generally use data-pics = ''>
------ Solution --------------------
This is to tell the system what to execute.
It is generally used in cron. You can also skip writing.
------ Solution --------------------
You can remove it directly. No.
However, in linux, you must specify php to execute the script.
------ Solution --------------------
Is this item still valid in linux? You have to ask Niu's moderator.
#! /Usr/bin/php
Specifies the software used to execute the code. of course, this file must be set to executable.
Equivalent
/Usr/bin/php filename. php
Windows does have this mechanism, but you have similar statements.
@ REM
@ REM ='
@ Set phpcli = \ AMP \ php54 \ php.exe
@ REM phpcli the path of your clim php.exe
@ % PHPCLI % 0
@ Goto: EOF
@ REM ';?>
Echo "\ rHello World ";
Exec ("pause ");
?>