Getting Started with Developing PHP Applications with Zend Studio_PHP Tutorial

WBOY
Release: 2016-07-13 17:48:27
Original
908 people have browsed it

Getting started with developing PHP applications using Zend Studio Sunday, August 28, 2011 12:28 A.M. The following steps will help you master the basic process of developing and running PHP applications using Zend Studio.
When you open zend studio for the first time, a welcome page will appear:


Use the welcome page:
1. Browse the welcome page to learn the features and functions of zend studio. Click the "Home" icon in the upper right corner to return to the home page of the welcome page.
2. On the welcome page, you can click the icon to close the welcome page. At this time, the workbench of zend studio will be displayed, and the PHP view will be displayed by default. This view contains some screens to help you with PHP development.
The PHP Explorer screen is a file system screen that displays the PHP projects in your workspace.

Install zend server (optional)
...(Process omitted)

Create a php project
In order to start programming, you must create a PHP project to contain your application files.
To create a PHP project:
1. From the main menu, select File | New | PHP Project or in the PHP Explorer view, right-click and select New | PHP Project. Then the New PHP Project instructions page will appear.


2. Enter a name for the project in the Project name box.
3. In the Contents category, select the location and default content of the new project. Options include the following:
o Create project in workspace - A new empty project will be created in your workspace. By default when you open zend studio for the first time, a workshop will appear at the following location: @user.home/Zend/workspaces/DefaultWorkspace7
o Create a project from current resources - Create a project that contains source files outside the workspace directory. Click Browse to select an existing file.
o Create a project on the local server - Create a project on the local zend server. This option is only available if zend server has been installed.
4. Click Finish.
A new PHP project will be created in your workspace and displayed in the PHP Explorer view. See Creating PHP Projects for more information.

Create PHP file
You can now start developing your application by creating new PHP files in your PHP project. To create a new PHP file in your PHP project:
1. In the PHP Explorer view, select the project you created.
2. Right-click and select New | PHP File or click File in the main menu and select New | PHP File. The Create New PHP File dialog box will appear:


3. Enter the file name and click Finish to complete creating the file.
Your file will open in the editor and displayed in the PHP Explorer view.

Create PHP element

You can use the Zend Studio PHP Element Creation Wizard to quickly and easily create classes, interfaces and other PHP elements in your PHP code.
To create a new PHP class or interface:
1. In the PHP Explorer view, right-click the project or file where you want to create a new element and select New | Class or Interface. 16:15 | Add comment | Permalink | Write to log | phpeclipse for php cannot create php project php project
When eclipse for php creates a new php project, after entering the php project name and clicking "next", the creation steps cannot be completed. The prompt is: can not create php element, it seems like this. It turns out that this is a bug in eclipse and must be patched. The specific method is: open help => install new softwear in the menu bar. In the install new software dialog box, work with select a site to download the software. Mine is: Galileo - http://download.eclipse.org/releases /galileo, wait a few seconds, the software for installation will be refreshed, select "PHP Development Tools (PDT) SDK Feature 2.1.2.v20090826-1027-7L7979F8NcJKhKRU19TmWA" and "PHP Development Tools (PDT) SDK Feature 2.1.1 .v20090707-1108-51384QACJCQDWeNNmUTdPJewhS9O" Install these two softwares. After the installation is complete, restart and there should be no problem. 10:37 | Add a comment | Permalink | Write to the blog | php September 6th
How does Zend Studio configure the local apache server to use xdebug to debug php scripts
Local environment matching:
apache 2.2 installation location: D:program filesApache Software FoundationApache2.2
php 5.2.10 installation location: C:php
xdebug has been installed and configured
zend studio installation location: D:program filesZendZend Studio - 7.0.0
zend studio default workbench installation location: C:UsersFredZendworkspacesDefaultWorkspace7

Configure apache, modify the httpd.conf file, and add:
at the end of the file
Alias ​​/Workspace "C:UsersFredZendworkspacesDefaultWorkspace7"

Options Indexes MultiViews ExecCGI
DirectoryIndex index.php
AllowOverride None
Order allow,deny
Allow from all


Change the name of /Workspace as you like
C:UsersFredZendworkspacesDefaultWorkspace7 This corresponds to the default workbench location of your zend studio

Next configure zend studio. Open zend studio => Window => Preferences => PHP
PHP Executables => Add, set as follows (the name can be whatever you want, but the subsequent debug settings must correspond to this name):


PHP Servers => New, set as follows:


Note that Workspace is added in the URL column. This is the directory alias added in httpd.conf.

PHP Debug, as shown in the figure below, select the appropriate Debugger, Server:

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478427.htmlTechArticleGet started with developing php applications using Zend Studio Sunday, August 28, 2011 12:28 A.M. The following steps It will help you master the basic process of developing and running php applications using zend studio...
Related labels:
source:php.cn
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template