Foros del Web » Programando para Internet » PHP »

error con define

Estas en el tema de error con define en el foro de PHP en Foros del Web. hola tengo este script Código PHP: <?php // this check prevents access to debug front controllers that are deployed by accident to production servers. // feel free to remove this, extend it or make something more sophisticated. //define('SIMFONY_ROOT', "/home/63542/users/.home/domains/pubcrawlba.com/html/calendar/html"); define ( 'SIMFONY_ROOT' ,  "/var/www/vhosts/esigual.net/subdomains/pubcrawl/httpdocs/calendar/html" ); //define('SIMFONY_UPLOAD', "/home/63542/users/.home/domains/pubcrawlba.com/html/calendar/web/"); define ( 'SIMFONY_UPLOAD' ,  "/var/www/vhosts/esigual.net/subdomains/pubcrawl/httpdocs/calendar/web/" ); define ( ...
  #1 (permalink)  
Antiguo 29/09/2011, 00:43
Avatar de engonga
Usuario no validado
 
Fecha de Ingreso: marzo-2002
Ubicación: Buenos Aires
Mensajes: 1.300
Antigüedad: 22 años
Puntos: 8
error con define

hola tengo este script

Código PHP:
<?php
// this check prevents access to debug front controllers that are deployed by accident to production servers.
// feel free to remove this, extend it or make something more sophisticated.

//define('SIMFONY_ROOT', "/home/63542/users/.home/domains/pubcrawlba.com/html/calendar/html");
define('SIMFONY_ROOT'"/var/www/vhosts/esigual.net/subdomains/pubcrawl/httpdocs/calendar/html");


//define('SIMFONY_UPLOAD', "/home/63542/users/.home/domains/pubcrawlba.com/html/calendar/web/");
define('SIMFONY_UPLOAD'"/var/www/vhosts/esigual.net/subdomains/pubcrawl/httpdocs/calendar/web/");

define('SF_ROOT_DIR',    realpath(dirname(__FILE__).'/../..'));
require_once(
dirname(__FILE__).'/config/ProjectConfiguration.class.php');

$configuration ProjectConfiguration::getApplicationConfiguration('frontend''prod'false);
sfContext::createInstance($configuration)->dispatch(); ?>
y ya no se que hacer por que me lanza el error

Código PHP:
Warning:  realpath() [function.realpath]:  open_basedir restriction in effect.  File(/var/www/vhosts/esigual.net/subdomains/pubcrawlis not within the  allowed path(s):  (/var/www/vhosts/esigual.net/subdomains/pubcrawl/httpdocs:/tmpin /var/www/vhosts/esigual.net/subdomains/pubcrawl/httpdocs/calendar/index.php on line 12 
pueden verlo en

http://pubcrawl.esigual.net/calendar/

estoy desesperado


gracias de antemano
  #2 (permalink)  
Antiguo 29/09/2011, 01:23
Avatar de repara2  
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 13 años, 6 meses
Puntos: 331
Respuesta: error con define

File(/var/www/vhosts/esigual.net/subdomains/pubcrawl) is not within the allowed path(s) significa que intentas acceder a un archivo / directorio que no está permitido. Consulta la docu de tu hosting o si es un server propio los permisos. Supongo que esto se puede configurar por directivas php, salu2
__________________
Fere libenter homines, id quod volunt, credunt.
  #3 (permalink)  
Antiguo 29/09/2011, 08:20
Avatar de engonga
Usuario no validado
 
Fecha de Ingreso: marzo-2002
Ubicación: Buenos Aires
Mensajes: 1.300
Antigüedad: 22 años
Puntos: 8
Respuesta: error con define

pero no hay otra forma de hacerlo que no sea con un define?

dónde se configuran las directivas del php?
  #4 (permalink)  
Antiguo 29/09/2011, 12:59
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Respuesta: error con define

En el php.ini.

Saludos.

Etiquetas: define, html
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:57.