|
Dear Sir,
I facing promblem where when I use PHP's readfile
(as below example) to access my JSP file from tomcat.
<HTML>
<HEAD> <TITLE>Test PHP</TITLE> </HEAD> <BODY> <?php
$remotefile = "http://www.newsgenerator.com/newsgenerator/scripts/notexist.jsp"; readfile($remotefile); print "<hr>"; if (file_exists($remotefile))
print "ok"; else print "no ok"; print "<hr>";
$fp = @fopen("$remotefile","r");
if ($fp) { print"The file exists!"; } else { print"The file does not exist"; } print "<hr>";
?>
To read the JSP file where the (www.newsgenerator.com) running Linux Red
Head, Apache, PHP4 and Tomcat. It give me error! (FIle not
exist).
After do some checking the error occur, it seem bcoz of:
AddHandler jserv-servlet .jsp (under tomcat-apache.conf)
I can't remark it, else tomcat will run take care of my jsp file.
So what can I do for it? So I can use readfile command from PHP to
access my JSP file.
While I also try to get other server jsp file (e.g. http://www.trainerslink.com/index.jsp),
but they work. So what wrong with my tomcat setting? Bcoz of
security?
Pls help
Thanks
Rgds Song Jing
|
