!在WINDOWS环境下的APACHE+PHP能否让PHP实现SHELL操作

WBOY
Release: 2016-06-13 13:52:52
Original
696 people have browsed it

求助!在WINDOWS环境下的APACHE+PHP能否让PHP实现SHELL操作!
因为有些时候测试一些数据必须在IE里输出出来后在看源码!但是我看到在LINUX环境中可以直接将PHP   加入到系统进程实现SHELL操作如:
[#/var/www/]:   php   index.php
然后在屏幕上输出了index.php里的脚本代码结果!
我在晕都死里必须   d:\php\php   e:\www\index.php
有什么办法可以在WINDOWS下实现像在linux下那中SHELL操作方式呢?

------解决方案--------------------
可以的,你把php.exe的目录加入环境变量中,就是系统的PATH目录
------解决方案--------------------
如果是Windows XP系统的话
控制面板-> 系统-> 高级-> 环境变量
修改系统环境变量里面的> > > PATH 各个目录之间使用分号分隔。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!