[英]Testing PHP code in dreamweaver
I'm currently developing a simple web based application which is using HTML, CSS, PHP and JavaScript. 我目前正在开发一个使用HTML,CSS,PHP和JavaScript的基于Web的简单应用程序。 I'm developing this with Adobe Dreamweaver 3.0 and I have used procedural PHP in writing server side scripting.
我正在使用Adobe Dreamweaver 3.0进行开发,并且在编写服务器端脚本时使用了过程PHP。 Now, I want to test the PHP codes.
现在,我想测试PHP代码。 Can someone tell me how can I test the procedural PHP code in dreamweaver?
有人可以告诉我如何在Dreamweaver中测试过程PHP代码吗?
You need install a webserver and php in your computer to test localy your site. 您需要在计算机上安装网络服务器和php才能测试您的站点的本地化。 I recomend you XAMPP.
我向您推荐XAMPP。
https://www.apachefriends.org/index.html https://www.apachefriends.org/index.html
It's the easy way to install all that you need. 这是安装所需所有内容的简便方法。
To run your code you need a server installed in your machine. 要运行代码,您需要在计算机中安装服务器。 After successfully installing the server your need to start that server.
成功安装服务器后,需要启动该服务器。 To check is your server working?
要检查您的服务器是否正常工作? Open a browser and type
localhost
or 127.0.0.1
. 打开浏览器,然后输入
localhost
或127.0.0.1
。
Also you need to put your php file inside the server DocumentRoot Folder In Xammp server it located here
C:\\xampp\\htdocs\\
In Vertrigo server it located here
C:\\VertrigoServ\\www\\
另外,您还需要将php文件放入服务器DocumentRoot文件夹中。在Xammp服务器中,它位于此处
C:\\xampp\\htdocs\\
在Vertrigo服务器中,其位于此处
C:\\VertrigoServ\\www\\
It will display the localhost page like this.
它将显示这样的localhost页面。
In Xampp Server
在Xampp服务器中
In Vertigo Server
在Vertigo服务器中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.