Zend Server User Guide > Tasks > Working with Demo Scripts

Working with Demo Scripts

Zend Server includes some sample PHP scripts to help IBM i developers get started with PHP. The following procedures explain how to install and access these scripts.

Installing Demo Scripts

To use the supplied sample scripts, the application containing the scripts needs to be installed.

 

 

Instructions on how to complete a procedure

To install the scripts:

  1. In the UI, go to the Overview | Dashboard page.
  2. In the Statistics gallery, select the Welcome tab.
  3. Click Install Samples.
    Zend Server will deploy the application containing the scripts.

Note:

The scripts are located in a folder named 'samples', in your Zend Deployment directory. See Deploying an Application for more information.

Using the Demo Scripts

After being deployed, you can now run and view the various example source code.

 

 

Instructions on how to complete a procedure

To run/view example code:

  1. In the UI, go to the Applications | Apps page.
  2. From the Applications list, select the ZendSamplesApp application.
    The Expanded view is displayed.
  3. Click the Base URL link.
    The scripts index is displayed.

Note:

If you have not yet defined the default server for deployed or defined applications, the Base URL will not be active. Go to the Administration | Settings page, and enter the default server in the General Settings area (e.g., localhost).

  1. Click 'index.html' to view the main page of the application.
  2. Select a sample script to run or view the source code.

For a list of the included scripts, see Demo Scripts.

 

 

Related Links

Related Links:

Demo Scripts

 

 

 

© 1999-2013 Zend Technologies, Ltd. All rights reserved.