|
Posted by Gladen Blackshield on 03/14/07 04:06
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 IHDR�i�LM@ IDATxo��Y",�Z&� �#22�,�ܭ��gl�Aj�-��d6f'L���^�V��Nz�O͝�:f�䩺�-u���Ý+�@�����'R�U���0�;3pwwY��"����'�'ȩ�of�M"S>>w�yZ�2�\Z�
3PU�T��F�Qa"'V[UefwY�yzg"Wy�R ?(���[�b:?�e��:��
&-��&�7i�,�~On9�?��0 '�Y�n�D����nGI�:�M��̢z��<is?fT�"�q\�V)��~�izgf?53ϳN�d5gwwC�mH�x<�f��8�"��gv�Xr'�T
�a����J"SJ9 "$3+����?==Z����o��v�Y�.�4�=<��f��"T^TMUTR)�>�9^
�4cffŬ$А�>�:���0??�R>79
"�j"{�9�Ƽ9'0�?T�W��zr-����-�緿�������o��cA��t~tֲ'qsw�_��?���_l��|<�o��`�S�a\>!��)�aDd�Z1s�aO��ۍ�#?�n7M^���?>>n6>iz{SS7f,K)�%.R���r�1��~8����xT�RJ�T^�F�--��������_�����eKRJ$ .?9�li-RUS�rZ � uȐ?�xw���n�Z ��?<<��Y`js)�Tԍ ��^@ LtB�Ѵ
YqSJ�lf���f^t�Q�RJ���Tw?��myqP @�D�"v�o���zG��'! �j� �ic31�"R��pt�Y
�0N8�Ze,��Aֺ��FY�Q��<�FW��G��ů�"?�.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?
Navigation:
[Reply to this message]
|