Thank you for responding to my email. I am still stuck with my problem.
I am using additionally jpgraph-1.6.1. Here is the content of my try.php file: <?php (include "jpgraph.php"); (include "jpgraph_line.php"); // Create the graph. These two calls are always required $graph = new Graph(450,350, "auto"); $graph->SetScale("textlin"); $graph->img->SetMargin(30,30,50,50); $graph->xaxis->SetFont(FF_FONT1,FS_BOLD); $graph->title->Set("SMT HISTOGRAMS"); // A new plot $ydata = array(55,66,67,66,67,67,66,68,67,66,68,67,68,67,68,67,68,68,68,68,68,69,68,68,68,68,68,68,68,68,68,69,68,68,70,67,69,68,69,68,69,68,69,68,68,69,68,68,68,69,68,68,68,69,68,68,68,68,69,68,69,67,69,68,68,68,69,69,68,68,69,67,68,68,68,69,69,69,69,69,69,69,68,68,68,68,68,68,68,68,68,68,68,68,68,68,69,68,69,67,69,68,69,68,69,68,69,68,69,67,68,67,69,68,68,68,69,69,69,68,68,69,69,68,69,69,69,68); // Create the linear plot $lineplot=new LinePlot($ydata); // Add the plot to the graph $graph->Add($lineplot); // A new plot $ydata1 = array(57,68,69,68,69,69,69,70,69,70,69,69,70,70,70,70,70,69,70,70,71,70,70,70,70,70,71,70,71,70,71,70,71,69,70,71,71,70,70,71,70,70,71,70,71,70,70,70,71,69,71,70,71,70,71,70,70,70,70,70,70,70,69,70,70,69,70,69,71,69,70,69,70,69,70,69,70,69,71,69,70,69,71,69,70,69,70,70,70,69,70,69,70,69,70,69,70,69,69,69,70,69,69,69,70,69,70,69,69,69,70,69,70,69,69,69,70,69,70,69,69,69,70,69,70,68,69,69); // Create the linear plot $lineplot1=new LinePlot($ydata1); // Add the plot to the graph $graph->Add($lineplot1); $graph->Stroke(); ?> I thought that I maight have set some file access uncerrectly and Java servlets cannot read them so I tried to display simple file: <?php echo "Hello World<p>"; ?> I got the same result as previously. I can display any of those files when I load html file: <html> </head> <body bgcolor="#A8FFFF" text="#0000A0" link="#408080" vlink="#0000A0" alink="#008040"> <h4>SMT MONITORING-----------</h4> <form> <img src="/jpgraph_cache/try.php" width="340" height="240" > </form> </body></html> So I am really confused. I just suppose that the problem is somehow related to html being generated on-fly in Java servlets. But I don't understand why is that. The source of Java generated html page is: <html> <body bgcolor="#A8FFFF" text="#0000A0" link="#408080" vlink="#0000A0" alink="#008040"> <h4>SMT MONITORING</h4> <form> <img src="/smtMonitoring/jpgraph_cache/hello2.php" width="340" height="240" > </form> </body></html> Thanks, Maciek On Thu, 16 May 2002, Jim lucas wrote: > show the contents of 'try_param.php' please. > > Jim Lucas > ----- Original Message ----- > From: "Maciej Przybycien" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, May 15, 2002 10:38 AM > Subject: [PHP] tag img and php > > > > > > Hi, > > I included php file as html img: > > <img src="/smtMonitoring/jpgraph_cache/try_param.php" width="340" > > height="240" > > > and Netscape brawser seems not to interpret that. However if I change > > try_param.php -> try_param.png then image can be desplayed. > > > > According to the documentation 'try_param.php' should be interpereted > > fine. > > What could be the problem? > > > > Thank you, > > Maciek > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php