Remote include

From: Date: Wed, 09 Jun 2004 09:31:23 +0000
Subject: Remote include
Groups: php.general 
Request: Send a blank email to php-general+get-187932@lists.php.net to get a copy of this message
I need to include in my PHP code a script located at a remote web server. The script is also PHP and contains some functions and class definitions. Because the remote server also use PHP, I've changed my include file extension ("php") to something other (e.g. "inc"). Because I'm afraid that the server will execute the script (which produces nothing) instead of sending its content. Am I doing right? Also, when the remote server sends this file back to my local server, what MIME type is returned in the response header? Anybody know it? Do I need to specify some type?

« previous php.general (#187932) next »