php-windows Digest 15 Sep 2008 13:59:20 -0000 Issue 3521

Topics (messages 29032 through 29033):

Re: I don't know what I'm doing wrong
        29032 by: George Pitcher
        29033 by: John Harris

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi,

>| (This is my connections.php)


>| require_once("Connections/connection.php");  //database connection

>| Warning: require_once(Connections/connection.php)

>|
>| I have a feeling that my issue is contained within:  
>| (include_path='.;C:\php5\pear')

It might be a slip of typing but you say in your description that the
connection file is called 'connections.php', but you are calling
'connection.php'.

George


--- End Message ---
--- Begin Message ---
On 14 Sep 2008 8:07, Daniel Wagner wrote outside the list

> the "connection.php" is inside of a subdirectory called "connections" the
> "practice.php" is located inside the "images" folder both of those folders
> are the only folders (or files) contained under my "test" directory
> 
> --- On Thu, 9/11/08, John Harris <[EMAIL PROTECTED]> wrote:
> 
> I can't see a problem if your connection.php file is located off the
> practice.php folder.
> 
> C:\wamp\www\WebRoot\Test\Images\Connections\connection.php
> 

So you have two solutions.

Specify the complete path to the connection.php file.
require_once("C:/wamp/www/WebRoot/Test/Connections/connection.php");

Or, tell the program to go up a directory level (../) to the Test folder 
to start looking for the connection.php file.
require_once("../Connections/connection.php");

-John


--- End Message ---

Reply via email to