Browser Out window and dynamic image [message #641559] |
Fri, 26 November 2010 05:56 |
Fred Messages: 1 Registered: November 2010 |
Junior Member |
|
|
Helios Eclipse and php 5.2.14
a simple php file
========
<?php
// Create a blank image and add some text
$im = imagecreatetruecolor(220, 40);
$text_color = imagecolorallocate($im, 233, 14, 91);
//imagestring($im, 15, 5, 15, 'A Simple Text String', $text_color);
// Set the content type header - in this case image/jpeg
header('Content-type: image/jpeg');
// Output the image
imagejpeg($im);
// Free up memory
imagedestroy($im);
?>
===============
the browser window outputs text like so
����JFIF��>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ��C $.' ",#(..................
===============
The php works as expected if browsed by firefox. - drawing/displaying the image
Maybe eclipse's browser window is supposed to work like that or not ?
Can anyone also answer as to what exactly is the eclipse browser code based on ? Mozzila or something ?
Thanks for your time
|
|
|
Powered by
FUDForum. Page generated in 0.25156 seconds