Switching from Zend Studio 5.x to Zend Studio 7.x
The following 'Switching from Zend Studio 5.x to Zend Studio 7.x' quick
guide' is intended for users who have worked with the traditional Zend
Studio and want to learn how to perform Zend Studio 5.x tasks in the new
Zend Studio 7.x.
Contents:
Project/File
Creation
Project/File Creation
To create a new PHP project:
Zend Studio 5.x |
Zend Studio 7.x |
From the main
toolbar select Project |
New Project. The New Project Wizard dialog box will
appear.
Enter a name for
the new project. The location is updated accordingly.
Click Next
to define specific properties for the new project.
Click Finish.
|
Go to File Menu
and select New | PHP Project
-Or- In the PHP Explorer View, right-click and select New | PHP Project.
The New Project
wizard will open.
Enter a name for your new project into the Project Name field.
Click Finish.
|
See the Creating Projects
and Files tutorial for more information.
To create a new file:
Zend Studio 5.x |
Zend Studio 7.x |
From the Menu
Bar select File | New File
-Or- Click the New File icon on
the toolbar.
A new PHP file
will open in the editor.
|
To create a new PHP file not associated
with a project:
Click the new
Easy PHP File icon on the toolbar .
-Or- In PHP Explorer view, right-click and select New
| Untitled PHP Document.
A new PHP file,
by default called PHPDocument1, will open in the editor.
To
create a new PHP file within a project:
In PHP Explorer
view, select the Project within which you would like to place
the file.
Right-click and
select New | PHP File
-or- go to File on the Menu Bar and select New
| PHP File.
The PHP File creation
dialog will be displayed.
Enter the name
of the file and click Next.
Click Finish.
|
See Easy File
Creation for more information.
Back to Top
Debugging
Debugging
Note:
By creating a debug launch configuration in Zend Studio
7.x, you can easily rerun the debug session with the settings specified
by clicking the arrow next to the debug button
on the
toolbar and selecting your launch configuration.
To debug a PHP script
using Zend Studio's internal debugger:
Zend Studio 5.x |
Zend Studio 7.x |
Open the Preferences
window by selecting Tools
| Preferences from the main menu.
Select the Debug
tab.
From the Debug
Server Configuration area of the Debug tab, select 'internal''
from the Debug Mode category.
Click Apply
and OK.
In the main toolbar,
click Go to start
the Debugger.
-or- from the Menu Bar select Debug
| Go.
|
Click the arrow
next to the debug button
on the toolbar and select Debug
As | PHP Script.
-Or- In PHP Explorer view, right-click the required file and
select Debug As | PHP Script.
|
See Locally
Debugging a PHP Script for more information.
To debug a PHP script using your server debugger:
Zend Studio 5.x |
Zend Studio 7.x |
Open the Preferences
window by selecting Tools
| Preferences from the main menu.
Select the Debug
tab.
From the Debug
Server Configuration area of the Debug tab, select 'server'
from the Debug Mode category.
Enter the URL
of the server on which you want to Debug your files.
Click Apply
and OK.
In Zend Studio’s
main toolbar, click Run
to start the Debugger.
|
Click the arrow
next to the debug button
on the toolbar and select Debug Configurations... -or- In
PHP Explorer view, right-click and select Debug
as | Debug Configurations...
A Debug dialog will open.
Double-click the
PHP Script option to create a new debug configuration and
enter a name for it.
Select the PHP
Web Server option under the Debugger Location category and
select your server from the list.
Under PHP File,
click Browse and select
your file.
Click Apply
and then Debug.
Note:
The next time you want to run this debug session,
click the arrow next to the debug button
on the toolbar and select your launch configuration. |
See Remotely
Debugging a PHP Script for more information.
To debug applications on a server:
Zend Studio 5.x |
Zend Studio 7.x |
From the Menu
Bar, select Debug | Debug
URL.
The Debug URL dialog will appear.
Enter the URL
of the file/application which you would like to debug.
Select whether
to use the local copy or server copies of the files.
Click OK.
|
Click the Debug URL button
on the main toolbar
-or- go to Run | Debug URL..
The Debug URL dialog will appear.
In the 'Open Browser
at' field, enter the URL of the first page that should be
debugged.
Click Debug.
Note:
In Zend Studio 7.x, creating a Debug launch
configuration gives you access to advanced Debugging options,
and allows you to easily re-run past Debug sessions using the
same settings.
To create and execute a Debug Launch
Configuration for debugging applications on a server:
Click the arrow
next to the debug button
on the toolbar and select Debug Configurations... –or- select
Run | Debug Configurations
A Debug Configurations dialog will open.
Double-click the
PHP Web Page option to create a new debug configuration.
Enter a name for
the new configuration.
Select your server
from the PHP Server drop-down list.
Under PHP File,
click Browse and select
your file.
Select the Advanced
tab.
In the 'Source
Location' category, select whether to use the local copy or
server copies of the files.
Click Apply
and then Debug.
Note:
The next time you want to run this debug session,
click the arrow next to the debug button
on the toolbar and select your launch configuration. |
See Debugging a PHP Web Page
for more information.
Profiling
Profiling
Note:
In addition to Profiling applications on a server,
Zend Studio 7.x includes the option to profile PHP Scripts situated on
your workspace using the internal debugger or your server debugger. See
Profiling a PHP Script for more
information.
To profile applications on a server:
Zend Studio 5.x |
Zend Studio 7.x |
From the Menu
Bar, select Debug | Profile
URL.
The Profile URL dialog will appear.
Enter the URL
of the file/application which you would like to Profile.
Select whether
to use the local copy or server copies of the files.
Click OK.
|
Click the profile
URL button on the
main toolbar -or- from the Menu Bar, go to Run | Profile URL.
The Profile URL dialog will appear.
In the 'Open Browser
at:' field, enter the URL of the page that should be profiled.
Click Profile.
Note:
In Zend Studio 7.x, creating a Profiling launch
configuration gives you access to advanced Profiling options,
and allows you to easily re-run past profile sessions using the
same settings.
To create and execute a Profile Launch
Configuration for profiling applications on a server:
Click the arrow
next to the Profile button
on the toolbar and select Profile Configurations –or-
select Run | Profile Configurations.
A Profile dialog will open.
Double-click the
PHP Web Page option to create a new Profile configuration.
Enter a name for
the new configuration.
Select your server
from the PHP Server drop-down list.
Under PHP File,
click Browse and select
your file.
Select the Advanced
tab.
In the 'Source
Location' category, select whether to use the local copy or
server copies of the files.
Click
Apply and then Profile.
Note:
The next time you want to run this profile
session, click the arrow next to the profile button
on the toolbar and select your launch configuration. |
See Profiling a PHP Web Page
for more information.
Back to Top
Source
Control - Subversion (SVN)
Source Control - Subversion
(SVN)
See the Subversive
User Guide for more information on SVN.
To define Subversion
connectivity:
Zend Studio 5.x |
Zend Studio 7.x |
Open the Preferences
window by selecting Tools
| Preferences from the Menu Bar.
Select the Source
Control tab.
Select 'Subversion'
in the Source Control drop-down list.
This will cause all source control preferences and menu options
to enable Subversion rather than CVS operations.
Configure any
required Subversion settings.
Click Apply
and OK.
|
Open the SVN perspective
by going to Window | Open
Perspective | Other | SVN Repository Exploring.
In the SVN Repositories
view, click the Add SVN Repository button
on the view's toolbar -or- right-click within the SVN view
and select New | Repository
Location.
The Add SVN Repository dialog will open.
Enter the information
required to identify and connect to your repository.
Click Finish.
Your SVN repository will be added to the SVN Repository view.
Note:
The connection details will be saved and can
be easily selected when performing SVN actions on your projects
and files. |
See Configuring an
SVN Connection for more information.
Checking out a Module
from SVN
Zend Studio 5.x |
Zend Studio 7.x |
Set Subversion
to be your Source Control default by following the steps under
'To define Subversion connectivity', above.
Go to
Tools | Subversion | Checkout.
Enter the repository
details.
Set
the Checkout Options.
Click
OK.
|
Create an SVN
repository connection by following the steps under 'To define
Subversion connectivity', above.
Go to File
| Import | Projects from SVN and click Next.
Select your repository
and click Next.
Select the 'Use
the Repository URL as the label' option and select the required
module/project to check out.
Click
Finish.
|
See Importing Projects From
SVN for more information.
To perform Subversion
commands (e.g. update/commit) on an SVN module:
Zend Studio 5.x |
Zend Studio 7.x |
Set Subversion
to be your Source Control default by following the instructions
under 'To define Subversion connectivity', above.
Right-click the
required file/project in the Project tab -or- open the file
in an editor and right-click.
From the right-click
menu, select Subversion
and the required action.
|
Create an SVN
repository configuration by following the steps under 'To
define Subversion connectivity', above.
Right-click the
required file/project in PHP Explorer -or- open the file in
an editor and right-click.
From the right-click
menu, select Team
and the required action.
|
See the "Making
Changes, Comparing Changes, and Committing Changes" section of
the Working with SVN Tutorial for more
information.
Back to Top
Source
Control - CVS
Source Control - CVS
See '
Working
in a Team Environment with CVS' in the Workbench User
Guide for more information.
To
define CVS connectivity:
Zend Studio 5.x |
Zend Studio 7.x |
Open the Preferences
window by selecting Tools
| Preferences from the Menu Bar.
Select the Source
Control tab.
Select 'CVS' in
the Source Control drop-down list.
This will cause all source control preferences and menu options
to enable CVS rather than Subversion operations.
Configure any
required CVS settings.
Click Apply and
OK.
|
From the Menu
Bar, open the CVS perspective by selecting Window
| Open Perspective | Other | CVS Repository Exploring
from the Menu Bar.
Click the Add
CVS Repository button
on the view's toolbar -or- right-click within the CVS view
and select New | Repository
Location.
The Add CVS Repository dialog will open.
Enter the information
required to identify and connect to the repository location.
Click Finish
to create your connection.
Note:
The connection details will be saved and can
be easily selected when performing CVS actions on your projects
and files. |
See Configuring a CVS Connection
for more information.
Checking out a Module
from CVS
Zend Studio 5.x |
Zend Studio 7.x |
Set CVS to be
your Source Control default by following the instructions
under 'To define CVS connectivity', above.
From the Menu
Bar, go to Tools | CVS |
Checkout.
Enter the details
in the Checkout dialog.
Click
OK.
|
Go to File Menu
and select Import | Projects
from CVS and click Next.
Select your repository
and click Next.
A 'Select Resource' dialog will appear.
Select your project
(if necessary, expand the nodes until you see it) and click
Finish.
A 'Check Out As' dialog will appear.
Click Finish.
|
See Importing Projects from
CVS for more information.
To
perform CVS commands (e.g. update/commit) on a CVS module:
Zend Studio 5.x |
Zend Studio 7.x |
Set CVS to be
your Source Control default by following the instructions
under 'To define CVS connectivity', above.
Right-click the
required file/project in the Project tab -or- open the file
in an editor and right-click.
From the right-click
menu, select CVS and
the required action.
|
Right-click the
required file/project in PHP Explorer View -or- open the file
in an editor and right-click.
From the right-click
menu, select Team
and the required action.
|
See the "Making
Changes, Comparing Changes, and Committing Changes" section of
the Working with CVS tutorial for more
information.
FTP
Connectivity
FTP Connectivity
To configure an FTP root:
Zend Studio 5.x |
Zend Studio 7.x |
Go to the main
menu and select File | Add
FTP Server
-Or- from the File Manager's File System tab, open the right-click
menu and select Add FTP Server.
The Configure
FTP Server dialog will appear.
Enter your FTP
connection details and click
OK.
The new FTP Icon appears in the file system.
|
Switch to the
Remote Systems view (tabbed with the PHP Explorer view) and
click the 'Define a connection to remote system' button on the view's toolbar.
The New Connection dialog will appear.
Select 'FTP' and
click Next.
Enter your Remote
FTP connection details and click Finish.
Your connection will be created and listed in the Remote Systems
view.
|
See Creating an FTP/SSH Connection
for more information.
Back to Top
Database Connection
Database Connection
Note:
Zend Studio 7.x allows connection to a variety of database
types.
To create an SQL server connection:
Zend Studio 5.x |
Zend Studio 7.x |
From Studio's
File Manager, click the SQL tab .
Right-click and
select Add Server.
The Add SQL Server dialog will open.
Enter the required
SQL Server Settings.
Click OK.
Your Server Tree will be added to the SQL tab.
|
In Database Development
Perspective, click the Create New SQL Connection icon on the Data Source Explorer
view toolbar.
The New JDBC Connection Profile wizard opens.
Select a driver
from the list
and enter the required information.
Click Finish.
Your new connection profile will be added to your databases
list in the Data Source Explorer view. |
See Creating
a Database Connection Profile for more information.
To connect to your
SQL database server:
Zend Studio 5.x |
Zend Studio 7.x |
Create an SQL
server connection by following the instructions under 'To
create an SQL server connection', above.
Select the SQL
tab from Studio's
File Manager.
Double-click the
Server you want to connect to.
The SQL Database tree will be displayed.
|
Create an SQL
server connection by following the instructions under 'To
create an SQL server connection', above.
Open the Database
Development perspective by going to Window
| Open Perspective | Other | Database Development.
In the Data Source
Explorer view, expand the SQL Databases node, right-click
your SQL server connection profile and select Connect.
The SQL Database tree will be displayed.
|
See Connecting to a Database for
more information.
To view the contents of a database table:
Zend Studio 5.x |
Zend Studio 7.x |
Connect to your
SQL database server by following the steps under 'To connect
to your SQL database server', above.
Expand the server
tree until you see the required table.
Double-click the
table -or- right-click the table and select Show Table Data.
In the Results
in Page selector at the top of the Data Display, select the
number of results you wish to display per screen.
The Data Display will show the contents of the table according
to the selected resolution. |
Connect to your SQL database
server by following the steps under 'To connect to your SQL
database server', above.
Expand the server
tree until you see the required table.
Double-click the required
table or right-click it and select Data
| Edit.
The table will open in a database
editor displaying all the data within the table. |
See Viewing and Editing
Database Table Content for more information.
Tunneling
Tunneling
Note:
Zend Studio 7.x allows you to define tunneling connections
to a number of servers, which can then be easily selected to establish
a connection.
To select a server to connect to using a tunneling connection, define the
server following the instructions below, click the arrow next to the tunneling
icon on the toolbar
and
select the required server from the list.
To configure tunneling preferences in Zend
Studio:
Zend Studio 5.x |
Zend Studio 7.x |
Go to Tools |
Tunneling Settings.
Define the relevant
tunneling settings.
Click Connect.
|
Open the PHP Server
Preferences page by going to the Menu Bar and selecting Window
| Preferences | PHP | PHP Servers.
Click New
to define a New Server (or Edit
if the server has already been defined).
Enter any relevant
settings in the Server, Path Mapping and Integration tabs.
In the Tunneling
Settings tab, check the "Enable
Tunneling" option and enter all necessary information.
Click Finish
or OK.
You can now use this server configuration to connect to your
server using a tunneling connection by clicking the Tunneling
icon on the toolbar
.
|
See Setting Up a Tunneling
Server for more information.
Note:
To configure a tunneling connection between Zend Studio
and your server, settings also need to be configured on your server.
See Setting Up Tunneling for full
instructions on setting up a Tunneling connection with your server.
Back to Top