Re: maddening include() problem
| From: | Richard Lynch | Date: | Tue, 19 Dec 2000 23:24:49 +0000 |
| Subject: | Re: maddening include() problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31092@lists.php.net to get a copy of this message | ||
It probably is the path...
Your include_path may have something like "./:/your/home/web/dir" in it, in
which case the "./" part is relative, so it "changes" from one file to the
other...
What really matters is where your currently executing main file is, and what
your include_path is set to. Use <?php phpinfo();?> to be sure include_path
is what you think it is.
----- Original Message -----
From: Peter Van Dijck <peter@vardus.com>
Newsgroups: php.general
Sent: Tuesday, December 19, 2000 4:36 PM
Subject: [PHP] maddening include() problem
>
> Hi,
> Warning: Failed opening 'identifier.php' for inclusion in
> ../html/header.php on line 4
>
> I am trying to include a file in a file that's already being included by
> another file.
> I've tried
> include("text.txt");
> include("../text.txt");
> include("/public_html/htdoc/stext.txt");
>
> nothing. Is it the path??? I'm confused!
> thanks for any help,
> Peter
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>