Including a .php file from another server?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Including a .php file from another server?

From: hntgzr <likei'mgonn@tellu.com>
Date: Sun Sep 25 2005 - 01:55:25 CEST

I am trying to include a function in a .php file on a different server from
the main .php files.

I am using:

include_path=http://www.anotherserver.com/foldername;
include(http://www.anotherserver.com/foldername/phpfiletocall.inc);

The .inc file is php formatted. Variables are passed to it (not via GET or
POST though) and returned using return(variablenames, etc);

But for some reason it doesn't appear to work properly.

Am I correct in using the .inc extension?
Are the commands above correctly written?

Basically I am trying to use the fsockopen function in a .php file on
another server where I know it works and return the results to a server
where the fsockopen command doesn't work.

Any help or guidance would be greatly appreciated.
TIA
h
Received on Mon Oct 24 02:10:10 2005