Once you've installed the Zend Framework, you may want to do some testing to make sure it has been installed properly. If you're not familiar with the Zend Framework, please see our Zend Framwork Introduction article. We'll go through two methods in this article to test your Zend Framework installation.

Zend Framework Installation Checker Script

  1. Using the cPanel File Manager, create a new PHP file for the installation checker script named installationchecker.php.

  2. Open your new installationchecker.php file with either "Edit" or "Code Editor" from the cPanel File Manager menu.

  3. Copy and paste the code from the following file into your installationchecker.php and click the "Save Changes" button:

    http://framework.zend.com/svn/framework/standard/trunk/demos/Zend/Gdata/InstallationChecker.php

  4. Now you can test your Zend Framework installation by navigating to yourdomain.com/installationchecker.php (replacing yourdomain.com with your actual domain name). You should see a verification page as follows:

    zend-framework-checked

Zend Framwork "Hello World" Script

A second method of verifying your Zend Framework installation is to create a "Hello World" script that uses the Zend Framework.

Unlike traditional "Hello World" scripts, this script is not designed to print the "Hello World" message to your browser. Instead, it will create a PDF file that will contain the "Hello World" message.

  1. Using the cPanel File Manager, create a new file named zendhello.php and open the file for editing with either "Code Editor" or "Editor."

  2. Copy and paste the code below into your new zendhello.php file and click "Save Changes" after you've pasted in the code.
  3. Once you've saved the file, navigate to yourdomain.com/zendhello.php in your web browser (replacing yourdomain.com with your actual domain name). While you will not see anything happen in the browser, in the background the script will create a new PDF file named hello.pdf.

  4. To verify your PDF file was created, navigate to yourdomain.com/hello.pdf in your Web Browser. You can also view the file in cPanel File Manager under public_html. If you do not see it at first, try refreshing your page in File Manager.

    zend-hello-pdf

By using the above script and creating the hello.pdf with that script, you've tested your Zend Framework installation is working.

If you have any questions regarding testing your Zend Framework Installation, please feel free to submit a question in our Support Center.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}