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

Source Control - CVS

Debugging

FTP Connectivity

Profiling

Database Connection

Source Control - Subversion (SVN)

Tunneling

 

Project/File Creation

Project/File Creation

To create a new PHP project:

Zend Studio 5.x

Zend Studio 7.x

  1. From the main toolbar select Project | New Project. The New Project Wizard dialog box will appear.

  2. Enter a name for the new project. The location is updated accordingly.

  3. Click Next to define specific properties for the new project.

  4. Click Finish.

  1. Go to File Menu and select New | PHP Project -Or- In the PHP Explorer View, right-click and select New | PHP Project.

  2. The New Project wizard will open.
    Enter a name for your new project into the Project Name field.

  3. 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

  1. From the Menu Bar select File | New File
    -Or- Click the New File icon studio_new_file_icon.png  on the toolbar.

  2. A new PHP file will open in the editor.

 

 

To create a new PHP file not associated with a project:

  1. Click the new Easy PHP File icon on the toolbar easy_file_creation.png .
    -Or- In PHP Explorer view, right-click and select New | Untitled  PHP Document.

  2. A new PHP file, by default called PHPDocument1, will open in the editor.

 

To create a new PHP file within a project:

  1. In PHP Explorer view, select the Project within which you would like to place the file.

  2. Right-click and select New | PHP File -or- go to File on the Menu Bar and select New | PHP File.

  3. The PHP File creation dialog will be displayed.

  4. Enter the name of the file and click Next.

  5. 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 debug_icon.png 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

  1. Open the Preferences window by selecting Tools | Preferences from the main menu.

  2. Select the Debug tab.

  3. From the Debug Server Configuration area of the Debug tab, select 'internal'' from the Debug Mode category.

  4. Click Apply and OK.

  5. In the main toolbar, click Go studio_run_icon.png to start the Debugger.
    -or-  from the Menu Bar select Debug | Go.

  1. Click the arrow next to the debug button debug_icon.png 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

  1. Open the Preferences window by selecting Tools | Preferences from the main menu.

  2. Select the Debug tab.

  3. From the Debug Server Configuration area of the Debug tab, select 'server' from the Debug Mode category.

  4. Enter the URL of the server on which you want to Debug your files.

  5. Click Apply and OK.

  6. In Zend Studio’s main toolbar, click Run studio_run_icon.png to start the Debugger.

  1. Click the arrow next to the debug button debug_icon.png 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.

  2. Double-click the PHP Script option to create a new debug configuration and enter a name for it.

  3. Select the PHP Web Server option under the Debugger Location category and select your server from the list.

  4. Under PHP File, click Browse and select your file.

  1. Click Apply and then Debug.

Note:

The next time you want to run this debug session, click the arrow next to the debug button debug_icon.png 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

  1. From the Menu Bar, select Debug | Debug URL.
    The Debug URL dialog will appear.

  2. Enter the URL of the file/application which you would like to debug.

  3. Select whether to use the local copy or server copies of the files.

  4. Click OK.

 

  1. Click the Debug URL button debug_url_button.png on the main toolbar -or- go to Run | Debug URL..
    The Debug URL dialog will appear.

  2. In the 'Open Browser at' field, enter the URL of the first page that should be debugged.

  3. 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:

  1. Click the arrow next to the debug button debug_icon.png on the toolbar and select Debug Configurations... –or- select Run | Debug Configurations
    A Debug Configurations dialog will open.

  2. Double-click the PHP Web Page option to create a new debug configuration.

  3. Enter a name for the new configuration.

  4. Select your server from the PHP Server drop-down list.

  5. Under PHP File, click Browse and select your file.

  6. Select the Advanced tab.

  7. In the 'Source Location' category, select whether to use the local copy or server copies of the files.

  8. Click Apply and then Debug.

Note:

The next time you want to run this debug session, click the arrow next to the debug button debug_icon.png on the toolbar and select your launch configuration.

See Debugging a PHP Web Page for more information.

Back to Top

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

  1. From the Menu Bar, select Debug | Profile URL.
    The Profile URL dialog will appear.

  2. Enter the URL of the file/application which you would like to Profile.

  3. Select whether to use the local copy or server copies of the files.

  4. Click OK.

  1. Click the profile URL button profile_url_icon.png on the main toolbar -or- from the Menu Bar, go to Run | Profile URL.
    The Profile URL dialog will appear.

  2. In the 'Open Browser at:' field, enter the URL of the page that should be profiled.

  3. 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:

  1. Click the arrow next to the Profile button profile_icon.png on the toolbar and select Profile Configurations –or- select Run | Profile Configurations.
    A Profile dialog will open.

  2. Double-click the PHP Web Page option to create a new Profile configuration.

  3. Enter a name for the new configuration.

  4. Select your server from the PHP Server drop-down list.

  5. Under PHP File, click Browse and select your file.

  6. Select the Advanced tab.

  7. In the 'Source Location' category, select whether to use the local copy or server copies of the files.

  8. Click Apply and then Profile.

Note:

The next time you want to run this profile session, click the arrow next to the profile button profile_icon.png 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.

Note:

Additional user guides can be accessed from inside Zend Studio by going to Help | Help Contents, or from the Eclipse Online Documentation site (http://help.eclipse.org/ganymede/index.jsp).

To define Subversion connectivity:

Zend Studio 5.x

Zend Studio 7.x

  1. Open the Preferences window by selecting Tools | Preferences from the Menu Bar.

  2. Select the Source Control tab.

  3. 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.

  4. Configure any required Subversion settings.

  5. Click Apply and OK.

  1. Open the SVN perspective by going to Window | Open Perspective | Other | SVN Repository Exploring.

  2. In the SVN Repositories view, click the Add SVN Repository button svn_add_icon.png on the view's toolbar -or- right-click within the SVN view and select New | Repository Location.
    The Add SVN Repository dialog will open.

  3. Enter the information required to identify and connect to your repository.

  1. 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

  1. Set Subversion to be your Source Control default by following the steps under 'To define Subversion connectivity', above.

  2. Go to Tools | Subversion | Checkout.

  3. Enter the repository details.

  1. Set the Checkout Options.

  2. Click OK.

  1. Create an SVN repository connection by following the steps under 'To define Subversion connectivity', above.

  2. Go to File | Import | Projects from SVN and click Next.

  3. Select your repository and click Next.

  4. Select the 'Use the Repository URL as the label' option and select the required module/project to check out.

  5. 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

  1. Set Subversion to be your Source Control default by following the instructions under 'To define Subversion connectivity', above.

  2. Right-click the required file/project in the Project tab -or- open the file in an editor and right-click.

  3. From the right-click menu, select Subversion and the required action.

  1. Create an SVN repository configuration by following the steps under 'To define Subversion connectivity', above.

  2. Right-click the required file/project in PHP Explorer -or- open the file in an editor and right-click.

  3. 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.

Note:

Additional user guides can be accessed from inside Zend Studio by going to Help | Help Contents, or from the Eclipse Online Documentation site (http://help.eclipse.org/ganymede/index.jsp).

To define CVS connectivity:

Zend Studio 5.x

Zend Studio 7.x

  1. Open the Preferences window by selecting Tools | Preferences from the Menu Bar.

  2. Select the Source Control tab.

  3. 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.

  4. Configure any required CVS settings.

  5. Click Apply and OK.

  1. From the Menu Bar, open the CVS perspective by selecting Window | Open Perspective | Other | CVS Repository Exploring from the Menu Bar.

  2. Click the Add CVS Repository button cvs_add_icon.png on the view's toolbar -or- right-click within the CVS view and select New | Repository Location.
    The Add CVS Repository dialog will open.

  3. Enter the information required to identify and connect to the repository location.

  1. 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

  1. Set CVS to be your Source Control default by following the instructions under 'To define CVS connectivity', above.

  2. From the Menu Bar, go to Tools | CVS | Checkout.

  3. Enter the details in the Checkout dialog.

  4. Click OK.

  1. Go to File Menu and select Import | Projects from CVS and click Next.

  2. Select your repository and click Next.
    A 'Select Resource' dialog will appear.

  3. Select your project (if necessary, expand the nodes until you see it) and click Finish.
    A 'Check Out As' dialog will appear.

  4. 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

  1. Set CVS to be your Source Control default by following the instructions under 'To define CVS connectivity', above.

  2. Right-click the required file/project in the Project tab -or- open the file in an editor and right-click.

  3. From the right-click menu, select CVS and the required action.

  1. Right-click the required file/project in PHP Explorer View -or- open the file in an editor and right-click.

  2. 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.

Back to Top

FTP Connectivity

FTP Connectivity

To configure an FTP root:

Zend Studio 5.x

Zend Studio 7.x

  1. 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.

  2. The Configure FTP Server dialog will appear.

  3. Enter your FTP connection details and click OK.
    The new FTP Icon appears in the file system.

  1. Switch to the Remote Systems view (tabbed with the PHP Explorer view) and click the 'Define a connection to remote system' button rse_new_connection_button.png on the view's toolbar.
    The New Connection dialog will appear.

  2. Select 'FTP' and click Next.

  3. 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

  1. From Studio's File Manager, click the SQL tab studio_sql_tab.png.

  2. Right-click and select Add Server.
    The Add SQL Server dialog will open.

  3. Enter the required SQL Server Settings.

  4. Click OK.
    Your Server Tree will be added to the SQL tab.

  1. In Database Development Perspective, click the Create New SQL Connection icon dtp_new_connection_icon.png on the Data Source Explorer view  toolbar.
    The New JDBC Connection Profile wizard opens.

  2. Select a driver from the list and enter the required information.

  3. 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

  1. Create an SQL server connection by following the instructions under 'To create an SQL server connection', above.

  2. Select the SQL tab studio_sql_tab.png from Studio's File Manager.

  3. Double-click the Server you want to connect to.
    The SQL Database tree will be displayed.

  1. Create an SQL server connection by following the instructions under 'To create an SQL server connection', above.

  2. Open the Database Development perspective by going to Window | Open Perspective | Other | Database Development.

  3. 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

  1. Connect to your SQL database server by following the steps under 'To connect to your SQL database server', above.

  2. Expand the server tree until you see the required table.

  3. Double-click the table -or- right-click the table and select Show Table Data.

  4. 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.

  1. Connect to your SQL database server by following the steps under 'To connect to your SQL database server', above.

  2. Expand the server tree until you see the required table.

  3. 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.

Back to Top

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 tunneling_icon.png  and select the required server from the list.

To configure tunneling preferences in Zend Studio:

Zend Studio 5.x

Zend Studio 7.x

  1. Go to Tools | Tunneling Settings.

  2. Define the relevant tunneling settings.

  3. Click Connect.

 

  1. Open the PHP Server Preferences page by going to the Menu Bar and selecting Window | Preferences | PHP | PHP Servers.

  2. Click New to define a New Server (or Edit if the server has already been defined).

  3. Enter any relevant settings in the Server, Path Mapping and Integration tabs.

  4. In the Tunneling Settings tab, check the "Enable Tunneling" option and enter all necessary information.

  5. 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
    toolbar_tunnel.png.

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

 

 

link_icon.png

Related Links:

Quick Start

Creating Projects and Files

Using the Debugger

Using the Profiler

Using SVN

Using CVS
FTP and SFTP Support

Using the Data Tools Platform

Setting Up Tunneling