Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
need help PLEASE READ
Old 08-02-2008, 03:23 PM need help PLEASE READ
Novice Talker

Posts: 14
Name: Anon Hanon
Trades: 0
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:
if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) {
this is the File That has the error
Code:
<?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: */

?>
PleaseDontBugMe is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-03-2008, 03:35 PM Re: need help PLEASE READ
The-Pixel's Avatar
I <3 Pixel's

Posts: 888
Name: Lindi Wheaton
Location: In Photoshop
Trades: 0
Do you have shared hosting? or a VPS? "open_basedir restriction in effect." is a setting in your php.ini file which can be access through root on any server. I would contact your host.
__________________
The-Pixel

Please login or register to view this content. Registration is FREE
:: iPhone Apps, Pre-Made Templates, Widgets, Menus, etc.

Please login or register to view this content. Registration is FREE
:: Web Design / Development, Business Cards, Logo Designs, etc.
The-Pixel is offline
Reply With Quote
View Public Profile Visit The-Pixel's homepage!
 
Old 08-03-2008, 04:56 PM Re: need help PLEASE READ
Novice Talker

Posts: 6
Name: Caleb Mingle
Trades: 0
Your accessing something outside of what you are allocated.

Check your $_include_path, it may be set to something like /home/ or /home/bla/ which you really do not have access to, and you need to set it to your directory.
TehUpload is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need help PLEASE READ
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17564 seconds with 12 queries