Home > php教程 > php手册 > body text

php环境配置说明

PHPz
Release: 2018-10-08 14:24:10
forward
756 people have browsed it

第一步:下载所需的工具包(easyeclipse-php-1.2.2.2.rar和  xampp-win32-1.7.0.zip)

第二步: 安装(将xampp解压到c盘根目录下,然后再安装easyeclipse-php)

第三步:(开启服务)

在C:/xampp目录下找到(xampp_start.exe)exe文件开启服务

在C:/xampp/apache目录下找到(apache_installservice.bat)文件开启服务

注:在开启这个服务时会报一个套接字错误(TCP/IP)端口被占用无法正常打开服务,这时需要把你计算机上用到端口号为80的服务关闭,然后再开启这个服务(一般用到这个端口的就是IIS)

如果要用到数据库则需要把C:/xampp/mysql目录下的(mysql_installservice.bat)开启

第三步:(配置): 在C:/xampp/apache/conf目录下找到(httpd.conf)文件打开后把里面所有为80的地方改一个端口号(可以是任意一个)

第四步:配置easyeclipseforphp工具

打开easyeclipse工具时会让你选择一个工作空间,这个工作空间一定要选择(C:/xampp/htdocs)如果放到别处运行时会报404错误,就是找不到路径

第五步:在工具里打开windows里的首选项(preference)

然后选择

配置

      

第六步:测试

新建一个php工程

建立一个php页面

<?php
/*
 * Created on 2010-10-20
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 print("太好了,可以出发了!");
 echo("<b>牛了吧</B>");
?>
Copy after login

 更多相关教程请访问 php编程从入门到精通全套视频教程

Related labels:
php
source:csdn.net
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 Recommendations
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!