News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Zend Framework on a shared host
January 08, 2010 @ 14:51:14

In this new post to his blog Rob Allen looks at how to use a standard installation of the Zend Framework on a shared hosting environment.

When you deploy a Zend Framework website to a shared host, you usually cannot change the DocumentRoot to point at the public/ folder of the website. As a result the URL to the website is now http://www.example.com/public/. This doesn't look very professional, so we'd like to remove it. The easiest way, given a ZF project created using Zend_Tool.

In the index.php file you'll need to define a constant and an .htaccess file to route everything back to that index. You'll need to be aware of this change when working with files and can check in the front controller for that constant to reset the base path if needed (code example included).

0 comments voice your opinion now!
zendframework shared hosting tutorial


blog comments powered by Disqus

Similar Posts

Mikko Koppanen's Blog: Creating a simple line graph

Inside DealTaker Blog: Kohana PHP 2.3.x Tutorial Part 1

Kevin Schroeder: (Basic) Configuring the Magento 2 Dependency Injection Container

Nicolas Grekas (on Github): Improved handling of HTTP requests in PHP

ProDevTips: Sorting 2D-arrays in PHP - anectodes and reflections


Community Events

Don't see your event here?
Let us know!


community series interview api language release example laravel symfony2 configure opinion part2 performance podcast install framework application php7 conference introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework