note 20627 added to function.include
| From: | bwetteborn at waddell dot com | Date: | Wed, 10 Apr 2002 14:35:32 +0000 |
| Subject: | note 20627 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29068@lists.php.net to get a copy of this message | ||
I have a problem about include and require that seems is not listed above.
Lets say, I have two servers. A PHP server (php.myhost.com) and the other a Java server
(java.myhost.com).
On the php.myhost.com I have a file that is trying to include a .jsp file from the java.myhost.com.
Currently there is a rewrite rule the wheneven a .jsp file is requested through normal http request,
the rewrite rule will grab the .jsp file and user never knows that they left the original domain.
The problem comes in when I try to use the include method to directly try to include a .jsp from
java.myhost.com in a .php file on php.myhost.com. It seems the only way it will work if if I do:
include("http://java.myhost.com/file.jsp");
instead of
include ("/file.jsp"); which I thought the rewrite rule would be able to understand,
because I'm making a request for a .jsp file.
FYI. same goes for the require method.
if none of this makes any sense please let me know.
Thanks :D
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+20627
http://master.php.net/manage/user-notes.php?action=delete+20627
http://master.php.net/manage/user-notes.php?action=reject+20627