Re: Using remote include config file and class in a local file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anton Heuschen wrote:
> 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 ?

As others have said, you are receiving the output of the config.php
after it has been parsed by PHP on the remote server.  You could try
naming it config.cfg, config.conf, config.ini, config.inc, etc...

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux