Read CiCodeIt is found that the processing URI is not processed according to the PHP runtime environment.
How can we determine the PHP runtime environment?
We usually run our PHP under Apache.ProgramOf course, some people use the IIS Environment
If we want to know what the current running environment is, we can test it using the php_sapi_name () function.
Code:
<? PHP
Echo php_sapi_name ();
?>
The output result in the Apache environment is "apache2handler ";
In CGI Mode, the output result is "CGI-fcgi"
If it is run in command line mode, the output result is: "CLI"
Based on this content, we can determine what the current running environment is!
How can I run it in the command line?
As follows:
Enter the address where dos enters the php.exe file. For example, my address is: D:/Wamp/bin/PHP/php5.3.3/
Input php.exe "absolute file path", for example, php.exe D:/Wamp/www/info. php.
Yes.