Estoy leyendo un tutorial de zend framework y dice esto:
Cita:
Ese "(Don’t do this on your production<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', true);
date_default_timezone_set('Europe/London');
$rootDir = dirname(dirname(__FILE__));
set_include_path($rootDir . '/library'
. PATH_SEPARATOR . get_include_path());
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Debug');
Zend_Loader::loadClass('Zend_Controller_Front');
// set up controller
$frontController = Zend_Controller_Front::getInstance();
$frontController->setControllerDirectory('../application/controllers');
// run!
$frontController->dispatch();
Let’s look at this file in more detail. Most of the work done in the bootstrap file is initialization
of one form or another. Initially, the environment is set up correctly b to
ensure that all errors or notices are displayed. (Don’t do this on your production
server!) PHP 5.1 introduced new time and date functionality that needs to know where
in the world we are. There are several ways to set this, but the easiest method is to call
date_default_timezone_set().
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', true);
date_default_timezone_set('Europe/London');
$rootDir = dirname(dirname(__FILE__));
set_include_path($rootDir . '/library'
. PATH_SEPARATOR . get_include_path());
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Debug');
Zend_Loader::loadClass('Zend_Controller_Front');
// set up controller
$frontController = Zend_Controller_Front::getInstance();
$frontController->setControllerDirectory('../application/controllers');
// run!
$frontController->dispatch();
Let’s look at this file in more detail. Most of the work done in the bootstrap file is initialization
of one form or another. Initially, the environment is set up correctly b to
ensure that all errors or notices are displayed. (Don’t do this on your production
server!) PHP 5.1 introduced new time and date functionality that needs to know where
in the world we are. There are several ways to set this, but the easiest method is to call
date_default_timezone_set().
server!)"
¿Qué es el server de producción? Tendré que poner esto en el bootstrapping de mi aplicación, y estará en el server, ¿donde va a estar si no? Hay debe haber un concepto que no entiendo bien.