zeeb44 — 2011-12-14T15:51:42-05:00 — #1
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['DOCUMENTROOT'].'/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
guido2004 — 2011-12-14T15:55:54-05:00 — #2
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?
cups — 2011-12-14T15:57:18-05:00 — #3
"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.
is telling you that you can include files automatically from 2 locations:
the directory I am in (the .)
Search the manual for include_path to find ways of changing the values for this directive.
zeeb44 — 2011-12-14T16:04:53-05:00 — #4
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.
zeeb44 — 2011-12-14T16:09:07-05:00 — #5
Never mind you can close this thread. I need to re-look at everything. May even end up deleting it. Thanks.