For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2006 > headers problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author headers problem
Jean Pierre Daviau

2006-03-25, 7:57 am

Hi to all the clear minds,

What if I want to have 2 images on the same page without having one of them
being in ascii?
.......
<body>
<p><IMG SRC="deuxpointdeux.jpg" WIDTH="360" HEIGHT="247" BORDER="0" ALT="|"
title="Montréal (Pointe aux Trembles) phone:514-645-4122">
</p>
<?php
//attempt to open image, suppress error messages
$image = imagecreatefromjpeg("deuxpointdeux.jpg");
//adjust gamma, display inputimage, outputimage
imagegammacorrect($image, 2.2, 1.571);
//send image
header("Content-type: image/jpeg");
ImageJpeg($image, null, 100);
ImageDestroy($image);
........

Thanks for your attention.

Jean Pierre Daviau
--
Easyphp1.8
Apache1.3.24
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
http://www.jeanpierredaviau.com


Jean Pierre Daviau

2006-03-25, 7:57 am

<p>gamma 2.2<BR><IMG SRC="deuxpointdeux.jpg" WIDTH="360" HEIGHT="247"
BORDER="0" ALT="|"></p>
<p><IMG SRC="gamma.php" WIDTH="360" HEIGHT="247" BORDER="0" ALT="|"></p>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com