Problem with Remote PHP includes
- From: "Hobgoblin Music" <nicola@xxxxxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 10:04:46 +0100
My website is hosted by Demon. The PHP version is 4.3.5, and
allow_url_fopen is set to on.
This command:
<?php include("http://www.mysite.com/file.htm"); ?>
Fails every time, even though the same command, on the same page, works fine
on a different server (which uses version 4.3.11).
(I am using a .php extension on the page in question)
I really need the same page to call up the same data on both sites, and the
address has to be remote, so I can't use Server Side Includes.
I've tried different URLS and file types (including .php files), but the
Demon site will not run this command, although it copes fine with this:
<?php include("../file.htm"); ?>
Is there something obvious I have missed?
(I can't make the path relative on one site and remote on the other, as I
need to use exactly the same file on both sites).
Thanks in advance for any help.
Nicola
.
- Follow-Ups:
- Re: Problem with Remote PHP includes
- From: Kim André Akerø
- Re: Problem with Remote PHP includes
- Prev by Date: Re: remove numbers from a string
- Next by Date: Re: Problem with Remote PHP includes
- Previous by thread: Help with extracting please folks.!
- Next by thread: Re: Problem with Remote PHP includes
- Index(es):
Relevant Pages
|