Re: I don't know what I'm doing wrong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <j.harris@xxxxxxxx> 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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux