![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
05/11/2008, 07:15
|
![Avatar de Elokimbeta](http://static.forosdelweb.com/customavatars/avatar268981_1.gif) | | | Fecha de Ingreso: octubre-2008
Mensajes: 41
Antigüedad: 16 años, 3 meses Puntos: 0 | |
Respuesta: Ayuda con código Cita:
Iniciado por pacognovellino hola a todos, queria saber si me pueden ayudar a solucionar un problema, tengo este código Código PHP: $thisFile = str_replace('\\', '/', __FILE__);
$docRoot = $_SERVER['DOCUMENT_ROOT'];
$webRoot = str_replace(array($docRoot, 'library/config.php'), '', $thisFile);
$srvRoot = str_replace('library/config.php', '', $thisFile);
define('WEB_ROOT', $webRoot);
define('SRV_ROOT', $srvRoot);
mi problema es que al hacer click a un link que me tiene que llevar a la dirección http://localhost/carrito/admin/producto, me manda a la dirección http://localhost/carrito/admin/carrito/admin/producto/
gracias
Lo mas probable es que tengas escrito por allí en tu código /carrito/admin/producto/
Debiendo tener sólo "producto.php" |