Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Need help PLEASE READ (php)

  1. Aug 2, 2008 #1
    I keep Getting This Error on my site but i dont know what it means


    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a2438169/public_html/cynscriptz/buy/smarty/core/core.get_include_path.php on line 34

    my website is http://cynscriptz.com/

    which is masking my real website name

    http://mytestsite.net76.net/cynscriptz/buy/index.php

    Any help appreciated

    -------------------------------------------------------
    This is the line that has the error


    Code (Text):
    if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) {
    this is the File That has the error
    Code (Text):


    <?php
    /**
     * Smarty plugin
     * @package Smarty
     * @subpackage plugins
     */

    /**
     * Get path to file from include_path
     *
     * @param string $file_path
     * @param string $new_file_path
     * @return boolean
     * @staticvar array|null
     */

    //  $file_path, &$new_file_path

    function smarty_core_get_include_path(&$params, &$smarty)
    {
        static $_path_array = null;

        if(!isset($_path_array)) {
            $_ini_include_path = ini_get('include_path');

            if(strstr($_ini_include_path,';')) {
                // windows pathnames
                $_path_array = explode(';',$_ini_include_path);
            } else {
                $_path_array = explode(':',$_ini_include_path);
            }
        }
        foreach ($_path_array as $_include_path) {
            if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) {
                   $params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path'];
                return true;
            }
        }
        return false;
    }

    /* vim: set expandtab: */

    ?>
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Need help PLEASE READ (php)
  1. PHP Help ? (Replies: 16)

  2. Need php advice (Replies: 6)

  3. Please!Need help! (Replies: 2)

Loading...