Using remote include config file and class in a local file
| From: | Anton Heuschen | Date: | Tue, 03 Nov 2009 08:35:34 +0000 |
| Subject: | Using remote include config file and class in a local file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-299580@lists.php.net to get a copy of this message | ||
Question is wrt to including a config file on an external server in a
local include
Lets say that on 127.0.0.1 I have test.php with
include http://200.200.1.1/Folder/Config.php
$obj = new RemoteClass()
do stuff
and on server 200.200.1.1 I have my Config.php file which is contains
the class RemoteClass() { echo "test" }
If I try to test it locally it says it cannot find RemoteClass ...
How can I include/require a config (or any other php classes file) on
my local running php script ?