Results 1 to 2 of 2

Thread: [RESOLVED] Warning: file_exists() [function.file-exists]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    352

    Resolved [RESOLVED] Warning: file_exists() [function.file-exists]

    Hi I have the following PHP error

    HTML Code:
    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/a8345173/public_html/smarty/core/core.get_include_path.php on line 34
    What should I look for to get around this as Im a newbie here. Thanks

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Warning: file_exists() [function.file-exists]

    The path of the file you are attempting to open is not in the list of allowed paths specified using the open_basedir directive. You can access any files in:
    • /home
    • /usr/lib/php
    • /tmp


    To fix this either move the file to one of those locations or modify the open_basedir line in php.ini file to include the directory in which the file resides.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width