Forum Moderators: coopster

Message Too Old, No Replies

PHP Dreamweaver error message

I have an error message that I can not troubleshoot!

         

gorgeous1

3:09 pm on Jan 15, 2009 (gmt 0)

10+ Year Member



I am still fairly new to dynamic design and have only done a few sites; however, I have an error message that relates to a log in page I am trying to get working.

On all the other sites I have done the initial script is:
<?php require_once('.../Connections/connLogin.php)?>

The error message I am getting is:

[function.require-once]: failed to open stream: No such file or directory in............. on line 1

Fatal error: require_once() [function.require]: Failed opening required ......... (include_path='.:/usr/share/pear-php5') in..............on line 1

I am sure it is a simple oversight, but I really need some help please?

(All the files are on the remote site)

mvaz

3:28 pm on Jan 15, 2009 (gmt 0)

10+ Year Member



Change to
<?php require_once('.../Connections/connLogin.php');?> - The ending ' and ; are missing.

alternatively try using

require_once ($_SERVER['DOCUMENT_ROOT']."/Connections/connLogin.php");