Results 1 to 2 of 2

Thread: include_once("../php_files/logout_links.php");

  1. #1
    Join Date
    Oct 2004
    Posts
    425
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default include_once("../php_files/logout_links.php");

    I am trying to use
    Code:
    <?php include_once("../php_files/logout_links.php"); ?>
    at http://www.poliscarhire.com/
    but appears error ... where is the problem ?

    Code:
    Warning: include_once(../php_files/logout_links.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/p/o/l/polisch123/html/index.php on line 342
    
    Warning: include_once() [function.include]: Failed opening '../php_files/logout_links.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/p/o/l/polisch123/html/index.php on line 342

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Check to make sure that you are pointing to the right location of the file in relation to the script you are using it with. Usually, it is best in use absolute paths (like: /home/sites/main/files/mypage.php ) as it avoids these errors.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

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