path include library
--------------------------------------------------------------------------------
mi aiutate a risolvere questo dilemma.....
ho configurato uno shop online che in locale va ma in remoto la parte admin non mi prende i file include e library (non da' errore , solo non mi compare il template i links.....)
admin/include/template
admin/library/ecc.........
Codice PHP:
// setting up the web root and server root for
// this shopping cart application
$thisFile = str_replace('\\', '/', __FILE__);
$docRoot = '/web/htdocs/xxx.xxxxxx.it/home/plaincart/'; originale era $_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);
// these are the directories where we will store all
// category and product images
define('CATEGORY_IMAGE_DIR', 'images/category/');
define('PRODUCT_IMAGE_DIR', 'images/product/');
// some size limitation for the category