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

Gareth Evans gareth.evans at schawk.com
Sun Oct 12 10:03:25 MDT 2008


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
---




More information about the FX.php_List mailing list