Need help with IMAGEJPG

This is a discussion on Need help with IMAGEJPG within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello; I'm a bit new to PHP and am having trouble with displaying an image through ANY of the ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-14-2007
Gladen Blackshield
 
Posts: n/a
Default Need help with IMAGEJPG

Hello;

I'm a bit new to PHP and am having trouble with displaying an image through
ANY of the IMAGE commands.

I've read EVERY tutorial I could find, and even copied the code from
exmaples...and nothing runs.

Each and every image I attempt to display (either through striaght PHP or a
call through an IMG link) shows up as RAW-DATA text.

I am running on a LINUX serever with PHP 4.4.6

PHP info tells me that I have GD enabled with Jpeg and with PNG.

I've tried each and every type of image, several different images, and all I
get is
the following:

?PNG  IHDRiLM@ IDATxoY",Z& #22,*glAj-d6f'L^VNzO͝:f䩺-uÝ+@'RU0;3pwwY"'' ofM"S>>wyZ2\Z
3PUTFQa"'V[UefwYyzg"WyR ?(*[b:?e:
&-&7i,~On9?0 'YnDnGI:M̢z<is?fT"q\*V)~izg f?53ϳNd5gwwCmHx<f8"gvXr'T
aJ"SJ9 "$3+?==ZovY.4=<f"T^TMUTR)>9 ^
4cffŬ$А>:0??R>79
"j"{9Ƽ9'0?T*Wzr--緿ocAt~tֲ'qsw_?_l|<o`S a\>!)aDdZ1saOۍ#?n7M^?>>n6>iz{ SS7f,K)%.Rr1~8xTRJT^F--_eKRJ$ .?9li-RUSrZ uȐ?xwnZ ?<<Y`js)Tԍ ^@ LtBѴ
YqSJlff^tQRJTw?myqP @D"vozG'! j ic31"RptY
0N8Ze,AֺFYQ<FWGů"?.DKS


etc.

Putting in the HEADER command nets:

Warning: Cannot modify header information - headers already sent by (output
started at /home/karstens/public_html/test/imgtest.php:9) in
/home/karstens/public_html/test/imgtest.php on line 11

and then the file output as raw data.

any suggestions? Fixes? Advice?



Reply With Quote
  #2 (permalink)  
Old 03-14-2007
Rik
 
Posts: n/a
Default Re: Need help with IMAGEJPG

Gladen Blackshield <gladen@verizon.net> wrote:
> Advice?


Don't multipost, only crosspost if strictly necessary. Answered in
comp.lang.php

--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT +1. The time now is 05:06 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0