PHPnow环境如何开打2个项目

WBOY
Release: 2016-06-13 10:37:40
Original
839 people have browsed it

PHPnow环境怎么开打2个项目
PHPnow环境里有2个项目,我把文件名改成了htdocs1和htdocs2,这2个项目我把其中一个改成htdocs就可以在浏览器里输入
localhost访问了,现在只能想访问哪个就把哪个的文件名改成htdocs。但是我不想手动更改文件夹名,能打开2个项目,有什么办法吗?


------解决方案--------------------
把两个项目放入htdocs目录中。以 localhost/目录名 访问
或者配置虚拟主机
------解决方案--------------------
你的入口文件是什么? http://localhost/htdocs1/+入口文件 试试。
------解决方案--------------------
这是当然的。以前你是localhost,明显不一样了。改改你的代码即可。
------解决方案--------------------

探讨

这是当然的。以前你是localhost,明显不一样了。改改你的代码即可。

------解决方案--------------------
phpnow不是可以添加虚拟主机么?随便添加一个,比如,a.a,然后修改C:\WINDOWS\system32\drivers\etc\hosts这个文件。就可以用 http://a.a/访问你的项目了。
------解决方案--------------------
探讨

phpnow不是可以添加虚拟主机么?随便添加一个,比如,a.a,然后修改C:\WINDOWS\system32\drivers\etc\hosts这个文件。就可以用 http://a.a/访问你的项目了。

------解决方案--------------------
用别的集成环境吧,直接放同一级的目录下就好了,直接localhost后跟文件名。
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!