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?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Christi Nickerson, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. my email is being rejected
  2. Can I run the FiverrScript on my hosting
  3. SQL database password

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
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.