http://w.yi.org/ftp/FAPM/Smarty/Smarty-2.6.0-docs-zh-CN/manual/variable.use.sub.dirs.html

解决方案 »

  1.   

    首先把smarty类文件copy到虚拟主机某个目录下,然后找到该目录的物理路径,然后include就可以了啊,并把smarty的cache目录,和生成php改为apache running用户可写就可以了
      

  2.   

    smarty类文件已经在 /yourPath/Smarty
    ini_set('include_path', ".:/yourPath");
    include_once 'Smarty/Smarty.class.php';
    。。
      

  3.   

    请问你是不是真的不能去看文档?require('Smarty.class.php');
    $smarty = new Smarty;
    $smarty->compile_dir = '你具有读写权限的目录路径';
    $smarty->config_dir = '你具有读写权限的目录路径';
    $smarty->cache_dir = '你具有读写权限的目录路径';
    $smarty->$use_sub_dirs = false;接下来再继续其它smarty的操作
      

  4.   

    To  redhatcn(9527):虚拟主机怎么可能禁止safe mode?$smarty->$use_sub_dirs = false; 应该为 $smarty->use_sub_dirs = false;http://w.yi.org/ftp/FAPM/Smarty/Smarty-2.6.0-docs-zh-CN/manual/variable.use.sub.dirs.html一开始的上面就是中文文档
      

  5.   

    看看你的comm目录,是什么权限?是否是连读取的权限都没有?