View Single Post
  #1 (permalink)  
Old 06-13-2007, 02:49 PM
dak888 dak888 is offline
WebProWorld Member
 

Join Date: Nov 2006
Posts: 72
dak888 RepRank 0
Default Opening a file outside of the root

I'm doing my first real attempt at using php with mysql. I'm using dreamweaver to create the recordset and connection. Dreamweaver automatically creates a folder outside of my document root for my mysql connection settings and then places a link at the top of my page php like so:

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

But I don't think it's finding the file. I've read that if the file in the require tag can't be found, it will break the php code. This would make sense since it's the first line of the document and if you view the source of the output, the page is completely blank!

I can see the file in remote view with dreamweaver but I can't see it with a ftp program. Is this a permissions issue or something?

Am I missing something completely obvious?

Take it easy on this PHP first timer.

DaK
Reply With Quote