Zend studio 12 + UPUPW + PHP5.4 development platform configuration process, upupwzendguard
1. Install Zend studio 12
The installation process is simple.
2. Modify the PHP. ini file
In the UPUPW folder directory, find the \ upupw \ PHP5 \ php. ini configuration file, search for the following keyword "xdebug", and modify it to the following content.
[Zend]
; Zend_extension = "E: \ upupw \ PHP5 \ ext \ php_ioncube_loader.dll"
[Xdebug]
Zend_extension = "E: \ upupw \ PHP5 \ ext \ php_xdebug.dll"
Xdebug. collect_params = 1
Xdebug. collect_return = 1
Xdebug. auto_trace = 0
Xdebug. trace_output_dir = "E: \ upupw \ xdebug \ trace"
Xdebug. profiler_output_dir = "E: \ upupw \ xdebug \ profiler"
Xdebug. max_nesting_level = 100
Xdebug. remote_enable = on
Xdebug. remote_handler = dbgp
Xdebug. remote_host = localhost
Xdebug. remote_port = 9000
Xdebug. profiler_enable = off
Xdebug. profiler_enable_trigger = off
Ii. Start UPUPW
Double-click the launch panel and start all services (or at least enable WEB + database). The interface is as follows:
3. Configure the debug environment of Zend studio
1) Open the software, after initialization, find Windows-> Preferences-> PHP-PHP Executable à add PHP 5.4
Add the PHP5.4 environment and path.
2) add an HTTP Server. In the PHP configuration bar, locate the Servers project and create a Web Server that is locally connected to the upw.
3) locate the debug option and change the PHP environment to PHP5.4,
3) Click OK to save
4) create a Local PHP Project, file-> New-> Local PHP Project
5) Test the project. Add the following code to the new project.
<? Php
Echo"Hello World ";Echo'</Br> ';
$ B = 20;
For($ I = 0; $ I <5; $ I ++ ){
$ B + = $ I;
Echo$ B;
Echo'</Br> ';
}
Echo$ B;
Phpinfo ();
?>