Re: [Fwd: PHP include() problem]
| From: | David Robley | Date: | Tue, 15 Aug 2000 01:26:34 +0000 |
| Subject: | Re: [Fwd: PHP include() problem] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11716@lists.php.net to get a copy of this message | ||
On 14 Aug, Tom Buck wrote:
> Hey all,
>
> I have a problem with using include()'s in my script. When I try to
> include a file from another server using, for example,
> include("http://www.domain.com/page.code"); , the
> file is either not
> included with an error ("could not include file...") or no error is
> given yet the file is not included.
>
> However, when I try it using a server running php 3.0.12 it works !
>
> Does anyone have any suggestions ?
>
> Cheers,
> Tom Buck.
> tom@atari.co.uk
If you want to use include on a remote server, you need to ensure that
your local PHP has support enabled for "URL fopen wrapper". The docs say
however that remote includes won't work on Windows.
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA