Ask a php question in a php file, including 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?
Reply to discussion (solution)
This is to tell the system what to execute.
It is generally used in cron. You can also skip writing.
In
This is to tell the system what to execute.
It is generally used in cron. You can also skip writing.
What should I do in the window environment?
You can remove it directly. No.
However, in linux, you must specify php to execute the script.
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