[FX.php List] Accessing a php file residing on an external server

Andrew Denman adenman at tmea.org
Mon Oct 13 11:13:35 MDT 2008


Also stepping back, are these two php.ini settings set appropriately?

allow_url_fopen
allow_url_include
http://us2.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen

Andrew Denman


-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen
Sent: Sunday, October 12, 2008 11:06 AM
To: FX.php Discussion List
Subject: Re: [FX.php List] Accessing a php file residing on an external server

Even simpler to work with is if the your external script outputs comma
separated values or something like that...
just like XML RPC.

ggt

2008/10/12 Gareth Evans <gareth.evans at schawk.com>:
> Jonathan,
>
> I think your issue is that the external script needs to be outputting raw
> php.
>
> Whereas your first example of
>
>> Test.php with single line of: $value = "Hello World"
>
>> require('http://000.000.000.000/test.php');
>> echo $value;
>
> doesn't work, changing test.php to:
>
>  <?php echo '<?php $value = 'hello world'; ?>'; ?>
>
> should work. You could also just rename test.php to test.txt if you don't
> need it to process anything.
>
> HTH,
> Gareth
> ---
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list