Jump to content

PHP header in Liferay


abdfahim

Recommended Posts

Dears,

 

I am trying to integrate my php pages in LifeRay. Everything works fine except the page that create an image. Here is the code of the page which is not working, it shows garbage characters (same thing if I don't use header in a normal Apache environment). FYI, when I host them in my Apache server, the image shows perfectly. Anybody has any suggestion or useful link regarding this problem? This is the first time I am tying to use LifeRay.

 

// Above this i set image properties by GD functions in $img variable

header("Content-type:image/png");
imagepng($img);
imagedestroy($img);

Link to comment
https://forums.phpfreaks.com/topic/251594-php-header-in-liferay/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.