THat works.  Thanks.  I was clueless as to why it wouldn't work.  Could you
explain why the ./ is necessary? I'm still a newbie, and I'm just curious so
that I don't repeat the same mistake in other areas.
Thanks
William


Angie Tollerson wrote:

> try include("./main.inc");
>
> >>> "William E. T." <[EMAIL PROTECTED]> 08/07/01 12:41PM >>>
> I'm running apache on win98 as a test platform for a site, but whenever
> I do includes it says it can't read the file.  I know the file is there,
> as apache lists it in the director listing.
> The exact error I get is
> Warning: Failed opening 'main.inc' for inclusion (include_path='..') in
> c:\program files\apache group\apache\htdocs\site\index.php on line 45
>
> The syntax I used to call the include is
> include("main.inc");
>
> This worked on the  REAL server I'm using, so I was wondering why it
> won't work locally.
> Thanks
> William
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to