That is correct, however I always use require_once not include_once Also, depending on your system the forward slashes might not get parsed correctly, so you might want to try two backslashes. Two for obvious reasons. Take care, Sina -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall Sent: Saturday, July 09, 2011 10:03 PM To: programmingblind Subject: including a file in a higher-level directory Hi all, A quick php question. In a case where you want to use include() or include_once() to include a file in a higher-level directory, how do you do it? For instance, if the main site directory holds a file called globals.php, and a file in the scripts folder (which itself is inside the main directory) wants to include globals.php, what is the syntax? I thought it would be: include("../globals.php"); to go up a level (..) and then select globals.php from that higher level. This, however, is not working. This is on the latest version of WAMP. Thanks, and I hope I made this clear enough. -- Have a great day, Alex (msg sent from GMail website) mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind