Home  >  Article  >  Backend Development  >  请教没有安装web服务器怎么运行php程序

请教没有安装web服务器怎么运行php程序

WBOY
WBOYOriginal
2016-06-13 12:49:311024browse

请问没有安装web服务器如何运行php程序?
没有安装apache等web服务器,装了php,要如何才能运行php程序?是远程的服务器空间,不是本地的。


------解决方案--------------------
那是肯定不行的呀...你去百度一下“wamp”,下载一个安装一下就可以运行php了
------解决方案--------------------
可以,以CLI方式直接运行,参看 http://php.net/manual/zh/features.commandline.php
------解决方案--------------------
CLI方式运行php是可以看到运行结果的。
http://php.net/manual/zh/features.commandline.php
------解决方案--------------------
是远程的服务器空间

那你就应该没权限用CLI方式运行php..
------解决方案--------------------
装个集成的很简单,一会就搞定啦!!
------解决方案--------------------
引用:
是远程的服务器空间

那你就应该没权限用CLI方式运行php..


+1

必须要指明如何调用php
php也是个运行文件,不给权限就能运行的话……天下大乱
------解决方案--------------------
如果能在远程服务器上装了php  那自然也可以装个环境,这样便于调试。  建议装环境!
------解决方案--------------------
PHP 5.3以上可以用php -S之类的方法启动一个WEB服务,就可以用localhost:XXXX的方式访问你的页面了。
------解决方案--------------------
http://php.net/manual/en/features.commandline.webserver.php

详情见此处
Statement:
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