Casey -- nope. the include statement is being issues from the parent page.
both files are in the same directory.
Nitsan -- the problem is apps like phpMyAdmin are littered with
include("./file.inc.php"); i'd have to replace all those to use full
paths. it's not a good idea from a servicability statement anyways.
thanks!
On Sun, Apr 6, 2008 at 4:21 PM, Casey <[EMAIL PROTECTED]> wrote:
> On Sun, Apr 6, 2008 at 2:17 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]>
> wrote:
> > This works:
> > include("file.inc.php");
> >
> > This doesn't:
> > include("./file.inc.php");
> >
> > I can't figure it out! PHPMyAdmin uses "./" so it's obviously not
> working.
> >
> > Here's my environment:
> > Win2003 Server w/ IIS 6
> > PHP 5.2.5 setup as ISAPI
> > All PHP and httpdoc directories have read, write, and execute
> > permissions given to IIS_WPG, IIS_USER, and NETWORK SERVICE
> > PHP.ini's include path is: include_path = ".;.\includes;.\pear"
> (I've
> > also tried include_path = ".;./includes;./pear")
> > phpinfo() works fine.
> >
> > Anyone have any ideas?
> >
> > Thanks!
> >
> > Noah
> >
> >
>
> Is that include() statement being issued within an included PHP page?
>
> a.php
> <?php
> include('directory/b.php');
> ?>
>
> directory/b.php
> <?php
> include('./c.php'); // Does this refer to c.php or directory/c.php
> ?>
>
> --
> -Casey
>