View Single Post
  #8 (permalink)  
Old 06-14-2007, 06:18 PM
Christiaan Christiaan is offline
WebProWorld Member
 

Join Date: Jan 2006
Location: Sydney Australia
Posts: 53
Christiaan RepRank 0
Default Re: Opening a file outside of the root

If your file mydatabase.php is in a folder named 'Connections' of the root then there should be nothing wrong with using:

<?php require_once("Connections/mydatabase.php"); ?>

However, I always use double quotes in tese instances, as you can see.
__________________
Chris
There is no failure until you give up.

Last edited by Christiaan : 06-14-2007 at 06:21 PM.
Reply With Quote