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