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

PHP 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/ [Broken]

    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: */

    ?>
     
    Last edited by a moderator: May 3, 2017
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Loading...
Similar Threads for Need help PLEASE Date
I need help decrypting this Mar 24, 2018
Fortran I need help in Fortran please -- Bairstow's method & Newton-Raphson Nov 26, 2016
Fortran Need help with FORTRAN Jun 8, 2016
Need help writing simple Haskell program please May 7, 2012
Please!Need help! Apr 6, 2008