• User Attivo

    Path include library

    :smile5:
    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.........

    [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
    // and product images
    // all category image width must not
    // exceed 75 pixels[/php]


  • Moderatore

    Ciao Patatrac,
    ho l'impressione che questa riga non sia corretta:
    [php]$docRoot = '/web/htdocs/xxx.xxxxxx.it/home/plaincart/';[/php]
    Prova a rimetterci l'originale o ad usare solo "home/plaincart/".

    Shad 🙂


  • User Attivo

    Ho risolto mettendo le path in webroot e srvroot.