Problem with Remote PHP includes



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


.



Relevant Pages

  • Re: IIS 6.0 on Windows Server 2003
    ... If PHP insists on using CMD.EXE to execute the shellcommand on the ... server, then no, you have no choice -- you must give read permissions to the ... this would be a security vulnerability caused by PHP. ...
    (microsoft.public.inetserver.misc)
  • Re: Problem with Remote PHP includes
    ... > My website is hosted by Demon. ... > Fails every time, even though the same command, on the same page, ... > (I am using a .php extension on the page in question) ... > and the address has to be remote, so I can't use Server Side Includes. ...
    (alt.php)
  • Re: Wnidows Server 2003 - I need help in getting the Connection Co
    ... command if already running. ... it fires off the netstat command for you, sending the results from that to ... another file which your PHP process can access. ... requires administator access we are get file permison problems - ANY IDEAS ...
    (microsoft.public.windowsmedia.server)
  • Re: OT: Old Windows command line...
    ... I need to create a .bat file that contains a command to invoke a php script multiple times, with the "stdin" for each invocation of the php script immediately following the command invoking the script (ah, how easy it was to do such things in MPE). ... Rather, they would only be passed to php if it specifically requested them, line by line; though then, as the default feed for the request would be from STDIN, and the datastream itself would be STDIN, MPE would then pass the lines in one by one. ...
    (comp.sys.hp.mpe)
  • Re: cron jobs in PHP admin to run a PHP file
    ... "command" in cron jobs I don't know what it is looking for? ... All I want to do is run the php script. ... have permission to execute it. ...
    (comp.lang.php)