SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with PHP Include code

    the page I am having trouble with is this one: http://www.msiatlanta.com/backstage_login.php

    Trying to make a member login php page appear in the template I have create for the website to keep it consistent.

    The code I am using to do the include is:
    <?php include($_SERVER['DOCUMENT_ROOT'].'/backstage_test/login.php'); ?>



    I have done this before on other sites. But it's giving me an error I am not sure what to do with. Any help would be appreciated. Thanks Guys
    Personal Portfolio - Zeeb44
    IT Manager for - Family Dental Health

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,495
    Mentioned
    161 Post(s)
    Tagged
    4 Thread(s)
    The error on your page is talking about require_once(./lib.php)
    So I don't think the line of code you posted is causing the error?

  3. #3
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    "Failed opening required './lib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')"

    Try and move lib.php into the folder /usr/lib/php:/usr/local/lib/php -- or put it into the same folder as the script that is calling it.

    The directive:

    include_path='.:/usr/lib/php:/usr/local/lib/php'

    is telling you that you can include files automatically from 2 locations:

    the directory I am in (the .)

    and

    /usr/lib/php:/usr/local/lib/php

    Search the manual for include_path to find ways of changing the values for this directive.

  4. #4
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am making changes to it right now. There is no folder named that. Would an iframe work in this situation? I know those a frowned upon.
    Personal Portfolio - Zeeb44
    IT Manager for - Family Dental Health

  5. #5
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind you can close this thread. I need to re-look at everything. May even end up deleting it. Thanks.
    Personal Portfolio - Zeeb44
    IT Manager for - Family Dental Health


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
  •