1. Installing XAMPP and Zend Studio
Zend studio:http://pan.baidu.com/s/1o6bjvae
Xampp:http://pan.baidu.com/s/1ntkncex
Normal installation can be done.
2. Configure Xdebug
Under XAMPP's installation directory, look for the PHP folder and edit the Php/php.ini file. Find [XDebug] and edit the contents as follows:
= "D:\xampp\php\ext\php_xdebug.dll"xdebug. remote_enable = 1xdebug. Remote_handler = "DBGP" Xdebug. Remote_host = "127.0.0.1"xdebug. Remote_port = 9000
Restart Apache at this time (can be restarted in the XAMPP console). Then enter http://localhost/on the browser will enter the XAMPP Welcome page, in the left and right menu click Phpinfo Link, can search "Xdebug" word even if the configuration is successful . As follows:
Makes use of the Zend Scripting languageengine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans
3. Create a project in Zend Studio
- 3.1 New Project
- Open the "File->new-and Local PHP Project" menu in Zend Studio to create a PHP project. The path of the project can be placed casually, for example I put in the D:\Zend\workspaces\DefaultWorkspace10 directory (will be configured in Apache in the directory), note that the content select Basic, Do not choose Zendframework (Zend Framework is a web framework in the PHP world, we do not use it now).
- Then, configure Lanch Settings, because we are b/s program, so Choose "Lauchurl", if you are C/S client script, you choose "Launch CLI Application". Note: Enter/at base path. Then press the default, slightly.
3.2 Configuring Apache for XAMPP
Configuring the D:\Zend\workspaces\DefaultWorkspace10 Directory
- Edit D:\java\xampp\apache\conf\httpd.conf Replace the following two ' D:/java/xampp/htdocs ' with "D:\Zend\workspaces\DefaultWorkspace10"
These two places are:
- DocumentRoot "D:\Zend\workspaces\DefaultWorkspace10"
- #DocumentRoot "D:/java/xampp/htdocs"
- <directory "D:\Zend\workspaces\DefaultWorkspace10" >
- #<directory "D:/java/xampp/htdocs" >
- Verify and restart Apache.
3.3 Configuring Zend Studio to use Xdebug
Configuration is required for Zend Studio to debug using Xdebug instead of the default Zend Debugger, which is configured globally in the PHP Debug menu, Window-->preferences.
PHP Debugger in a web to choose Xdebug.
Build a PHP development environment (XAMPP + xdebug+zend Studio)