


Eclipse PHPEclipse configuration, eclipsephpeclipse_PHP tutorial
Eclipse PHPEclipse 配置,eclipsephpeclipse
最近偶来兴致趁着有些时间,看了看php的书。 说到php就不得不提php的开发环境了,一般的都是采用apache做服务器、mysql做数据库,再加上php组合成一个完备的运行环境,但是好像没有写代码的编译器啊,一直用notepad徒手写php代码可不行,后来听闻eclipse竟然也可以用来开发php,只需一个php插件——"PHPEclipse"。简单来讲PHPEclipse就是一个 Eclipse插件,它为 PHP 开发人员提供一个集成的开发环境。具体的介绍请看官网:http://www.phpeclipse.com/ 下面说一下在Eclipse下安装、设置、使用PHPEclipse的步骤: 一、安装好apache+mysql+php+eclipse 本来这里的安装不是本文的重点,但我还是想在这里啰嗦一句,apache+mysql+php如果要是单步一个一个安装最后再配置在一起太过复杂,这里推荐一款集成好了的安装包"Xampp",Xampp包含了apache、mysql和php,而且安装后不用再单独设置其他的东东,很是方便,极力推荐。 二、下载PHPEclipse 可以在这里下载PHPEclipse的Binarry版本(http://sourceforge.net/projects/phpeclipse/?source=typ_redirect) 三、安装PHPEclipse 从下载的压缩包中解压出来的features文件夹下的所有内容复制到eclipse根目录中的features文件夹下,如复制到:D:eclipsefeatures(eclipse安装在哪儿了就去哪儿找features)。同理,将压缩包中的plugins文件夹下的所有内容复制到eclipse根目录中的plugins文件夹下。将压缩包中的将site.xml复制到Eclipse的根目录即可。 四、配置PHPEclipse 1、重启eclipse。 2、打开eclipse,选择Window->Open Perspective->Other… ![]() 3、在Open Perspective窗口中,找到选择PHP选项 ![]() 4、此时在Eclipse右上方可以看到PHP的选项卡,这样可以在java、debug、php模式间互相切换 ![]() 5、在Eclipse中依次选择Window->Preferences,在弹出的Preferences窗口的从左侧菜单栏中依次点击PHPeclipse->PHP External Tools,修改PHP配置信息。PHP External Tools三个子菜单:Apache、MySQL、XAMPP,用于设置Apache、MySQL、XAMPP的配置信息。 ![]() 6、点击Apache子菜单,修改Apache配置信息。将Apache路径修改为本机安装路径。修改样例如图所示,具体值以自己电脑为准。 ![]() 7、修改MySQL配置信息 ![]() 8、修改XAMPP配置信息 ![]() 五、使用PHPEclipse 1、将Eclipse切换到PHP视图,依次选择File->New->PHP Project新建PHP工程。在New PHPProject窗口中输入工程名(Project name),选择工程保存位置,点击Finish结束。 ![]() 2、选中刚刚建立的Hello World工程,鼠标右键单击,在弹出的快捷菜单中选择New->PHP File ![]() 3、在弹出的新建窗口中,输入PHP文件名称,如index.php,然后下一步 ![]() |
Detailed description: http://php.662p.com/thread-512-1-1.html

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...
