??? I thought you said "my.inc.php" but you're including "my.php".

This one should work:

  include_once "../include/blah/my.inc.php"; // filename is my.inc.php

- E

"Nelr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> From the root of a website: /
>
> I had a file called /my.php which included a file /include/blah/my.inc.php
>
> In my.php if I put the include_once( "./include/blah/my.inc.php" ); it
works
> fine
> when my.php is in the root of the site.
>
> If I move /my.php to /blah/my.php, no matter how I address
> ../include/blah/my.php or /include/blah/my.php I keep getting path errors.
>
> How do I get around this problem using only relative paths (no absolute or
> placing in an include path)
>
> Neil.
>
>


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

Reply via email to