The prerequisite for running the php file in the command line is that you have to install the PHP environment on the operating machine to use the php.exe file to execute the specified file. the specific method is as follows. The socket that needs to be used recently. the server needs to run the php file under the command line. The prerequisite is that we need to install the PHP environment on the operating machine to use the php.exe file to execute the specified file. the specific method is as follows.
Recently, the socket needs to be used, and the server needs to run under the command line. how can I run the php file under the command line?
Windows 7 solution, XP did not try, but the same is true, not much difference
1. path of your php.exe file, such as d: \ php5.3 \
2. right-click the computer and choose Properties> Advanced System Settings> Advanced> environment variables.
3. find the Path in the system variable to see if your php Path exists. if not, add your php Path to the Path, for example, d: \ php5.3 \. save it.
4. go to your site directory under the cmd command line and enter the file name, for example, F: \ www \ socket> php.exe s. php.
Permanent address:
Reprint at will ~ Please bring the tutorial URL ^