RE: [PHP] include error
| From: | David Freeman | Date: | Fri, 19 Jul 2002 22:55:26 +0000 |
| Subject: | RE: [PHP] include error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108595@lists.php.net to get a copy of this message | ||
> trying to include a file i get the following error
>
> Warning: Failed opening
> 'http://prepaenlinea.com/links/10.swf.inc' for
> inclusion (include_path='.:/usr/local/lib/php') in
> /home/www/prepaenlinea/main.php on line 36
I'd guess it's in one of two areas. First, you're using a relative path
to the include file and the relative path information isn't correct for
the location of the include (most often this will be a problem with
directory levels). Second, you're on a *nix host and you've mixed up
your case - ie. Your include statement is all lower case and a directory
or file on the filesystem has mixed case.
Check for these first and see how you go.
CYA, Dave