Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Browser Out window and dynamic image
Browser Out window and dynamic image [message #641559] Fri, 26 November 2010 05:56
Fred is currently offline FredFriend
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
Previous Topic:Generate getters and setters automatically?
Next Topic:Cannot Use Helios
Goto Forum:
  


Current Time: Thu Oct 03 15:10:54 GMT 2024

Powered by FUDForum. Page generated in 0.25156 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top