help..image wont display

This is a discussion on "help..image wont display" within the PHP Forum section. This forum, and the thread "help..image wont display are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 27th, 2007, 03:41
New Member
Join Date: Mar 2007
Location: phils
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
help..image wont display

i have this issue:

showpic.php
================================================
$ch = curl_init();
$timeout = 0;
curl_setopt ($ch, CURLOPT_URL, $xmyurl);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
// Getting binary data
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);

$image = curl_exec($ch);
curl_close($ch);

header('Content-type: image/png');
$xim=@imagecreatefromstring($image);

$xbase = @imagecreatetruecolor(130,168);
$xback=imagecolorallocate($xbase, 255,255,255); //green
imagefill($xbase,0,0,$xback);

$xhead=@imagecreatefrompng('xhead.png');
imagecopy($xbase,$xhead,10,0,0,0,108,28);
imagecopy($xbase,$xim,0, 28, 0, 0, 130,140);
imagepng($xbase);
================================================

then i have this code to display the pic:

echo'
<font color="#FF0000" size="4">Congratulations!!!</font><br>
<span style="font-weight: 400"><font size="2">
<font color="#000000">Here is your pic ;-)</
font><br>
</font></span>
<img src="showpic.php?xurl='.$newurl.'">
';
the issue is, on my machine both on ie and ff the image display
perfectly.
however on some machines it doesnt display the entire pic just the
$xhead value.
what is wrong with it? can some pls tell me how to fix this problem?
Reply With Quote

Reply

Tags
image, imagepng, php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image display help.. [URGENT :( ] jahphill Web Page Design 6 Jun 6th, 2008 02:37
Image display question shammy2007 JavaScript Forum 2 Jan 16th, 2008 01:45
[SOLVED] Background Image wont be at bottom defy Web Page Design 7 Nov 9th, 2007 20:33
why wont my image show up? :( monkeymafia Web Page Design 4 Jun 20th, 2007 17:12
Display Image Problem Matc JavaScript Forum 1 Jun 17th, 2007 23:32


All times are GMT. The time now is 05:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43