Need help with PHP Include code

the page I am having trouble with is this one:

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

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?

“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:


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.

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.

Never mind you can close this thread. I need to re-look at everything. May even end up deleting it. Thanks.