Jump to content

Does imagepng work with $_POST?


Monkuar

Recommended Posts

Because, everytime I put my code under a if ($_POST['xxx']){

 

 

it will never generate the image, but when I use like image.php and put the code in their, it works fine? Is there a php setting for this?

 

Here is my code to display my custom rpg character

 

$character = imagecreatefrompng("./img/nrpg/base_m.png");
$sword = imagecreatefrompng("./img/nrpg/swords/sword1.png");

$boots = imagecreatefrompng("./img/nrpg/boots/boots1.png");

  

// Copy Width height = last 2 variables
imagecopy($character,  $sword, -2, 21, 0, 0, 39, 39);
imagecopy($character,  $boots, 37, 75, 0, 0, 38, 35);

// Output and free from memory
header('Content-Type: image/png');
imagesavealpha($character,true);
imagesavealpha($sword,true);
imagesavealpha($boots,true);

imagepng($character);

  
  

  imagedestroy($character);
  imagedestroy($sword);
  imagedestroy($boots);
exit;

 

That is under a $_POST Call,

 

 

I use the same EXACT code in image.php with no $_POST and it works, same directory as well any idea? I am completely dumbfounded, does imagepng not work under submitting data?

Link to comment
Share on other sites

what are you trying to post? if it's another image, you can use $_FILES['name'] instead.

 

Im building my images server side.  It's just a basic "Create my character" $_POST.  They enter their name/etc, pick their item/etc

 

Example:

 

2525n.png

 

But for some reason, the imagepng does not show when submitting data, I have the EXACT same code w/o it under a $_POST and it works fine, I am dumbfounded.

Link to comment
Share on other sites

Is this an actual part of your code:

if($_POST['xxx']){

^ I would think that would result in an error, at least if it doesn't exist.

 

Try to turn on error reporting!

 

And comment this line so you can actually see the error:

//imagepng($character);

if there's an error and you use that function it will just result in a corrupt image

 

 

also make sure what imagecreatefrompng gets is an actual png file.

 

Might also be what you are looking for to use is $_GET

Link to comment
Share on other sites

As I think Mahngiel was alluding to, an uploaded image will not be available from $_POST['field_name']. With file uploads the form needs to have the appropriate enctype and you need to reference the file differently using the $_FILES super global.

I'm still unsure why people would need to upload the picture they put together in this game?

http://forums.phpfreaks.com/index.php?topic=363782

 

If it actually is something they do with javascript or something client side, then they should send the data about what they have done to the server and then create the image there instead. That way you can stop them from doing/using something they aren't allowed to.

 

nvm the $_GET comment, because I was just thinking of something I did way back, just totally ignore that, as that's not a good advice if you do as I said earlier in this post.

Link to comment
Share on other sites

Im not uploading any files, im generating overlapping images server side with the server already on my server (base_m.png)

 

Error reporting is on, I uncommented that all, I get no errors whatsovers.

 

http://img717.imageshack.us/img717/2217/251d.png[/code]

 

 

 

if I uncomment the //imagepng

I echoed my $character variable, it shows:

 

Resource id #21

 

When I do not comment it out it shows:

 

�PNG  IHDR_m���S IDATx���y�fU}��Yk���V�[su���6�Ȩ"AEq��D�ј�I0&7����I�9��7�&j�"��q�2R��ϟ~��y�U%��w�Ҕ3�a��־���%O<����^�p%L�i�+��?�o��j��Y��<`9�09��"I�^t⃻f����� '�����r�կ*��4]��43Z����Z2���3����"�M׷�x��y���C)�h���J~���hz���qM�89�tl�T,W5~�C%fj�3��ܜ�Xь�'V��l�X��$�D��c���R�"ׯ_�m����Rd�l��SK�*^���g���2��ur���FP����H�*g#�?0K�T1YBN�a��2-�+tj�������HT^]mC�vЦDJ#�PQ�v%�1��9D���F:!r_ �,���b�L��;6d�OI�lǁ����Y,������_�ꪫ�������*7?ksO0�i�`�v?dr��%9�bt���0Bx!:���"��Hʱ҄n�h��I��4 ���:.�J�p���/,W&s_S��7*��aP.��T*��~��_����<���8y`o�}���q-�N�C#LA	�BHRD��,B"��8.B��9�A��,�;�]n�LJ�BQ4�0�4�����?|��̥�%���H������;w��:��\x���X�/`K1y��JC��G,�9�iѵ|g[����*g�G� �B���aID��؈B��!7a�Iu�Ƀ��.w0��<��ԩ2�a��Ǥ�M��֑�ƴV/��ܷo�711��R�$ k׮=���W���^t�E�Ro�<��1,�4�49�������4�pC�AK`�]D3�������@��X��_��G�H��}�nxj�,�-��mi^=V �wȇ�͐�ކn�u�i��y��m��6{�9�l�m�4M�R�q��7MOO�����{���C�� �>�'?��i�Im/���R+`i��P�b�%���X7 ��_��tfN�n?a�b�ݳ ���)�qB/�(�`��XS�z"ٻ�(�Z���i|��r�˛n�i@.�@��֎m۶����>��ϟ��>�%��FǞ$���T�d�y S$tc�G3�U�G:Jd!��D?F:Y��`��べ;���?V��M5}RZqL#�	��A�RT`�n6�-���l��XY)ȇ~����y����RbRJ�4e��͛7l�p�_��_�ɷ��6�KT	ѓD�d0	c�8F�&J�T��\6����� �9����*�0l�d�T�6@#c�M���i����4%kYT���l��sL8VV �X,�|�5�,�Y��uB���l�P�)�q ����� y�UWun�馿�����M�6��~�ٱ ���#48j�������]�v�yk����Q`l����S��9���m�@�u�Rv�B�ޭm���nG��C/�~�BkH����D /N�?N�g��1ߏp]Ǜ/ˉ� Itm�޼��y����UQ���?�Y�,V&��Y�f��?�?���>��O_;55E.�{�|�4� ��c�T�� _�җ.Y�7x TCE5T,�c�cﶇ2e!�egrT}E;N"i�����x��rGEma;����2�G��G�3S�9\�X��xA������}������zx��(Ph�R�4��羊uC�ͭzw{���h�4Z�����'��_�rgll�ϯ���s�8�������R"�����	�4M���p� x� 7\u�y���"L�jݣ��8N��� &2�oq�p�����u"29q���|_G�H�G�A��(���(b�0T�i�IJ���MX�+�TbI.�v�����(�@���t:Z�=m=�f�E����΃gv��7M)����q��������������������E׬aDJ�a���c+��XV�iF�v|V��[Y��Y��c��}��CtF3�(��9EwZd�D��i/���t� �6-�ԘX&X$��M&�yضL�mZ?'o��m�w[����ً L�0�9��;�}�.�����X�����r���?��?�yݺuG��J1�mۊER�|���я~��W�M����e��������:��N��z��{}��r��X��ӎ�0���d�p�V��t�kx-��Wt:!K�m�~�m[�&dlǀ�+k9ǚ��?Uh�A�C�zk��A�O�L�f��a�`+�d��O���[n�^}�������SSSE�͛y�)�`�1��Q�i�<��C���'?�vV���FQ,�_k,���.��=�.��f̝k��\ T�1[�2����[���#Z�6i���5���r' �5S�35a*h���/��ߞ^��5	�V��{�&��aa�%���o����Z�B}�Z��j���������>�����K%:��.����&�����q���n�����װ�08��X�N����Ρ&�:�^�Q������ˊ��"�)վ�H͟�z�L��C}�C�]̓�!P,���^���������^q��M	a"��*��V�@]��q"�!��B��I���@qht����J������_�O���?�12I����9����j���|>?���~��+��r++TN�+ lg���hy�?C�m����r��b 9#e�d��[�)r��1���:���5��`��H����4���#7�v�g�c�!P�4�K����Vd�7�^L�Q�D�͆�C�1:L�A��#���:u�(�lY	��'_^v�e�����/�䒿!M������� x������� W_}������y+P��E�2����4+�ɁF�N�6���4���ﶙ�v�;�e��vv���h1#�B�����]K\�����5����f���A��L��,���0|]����R�P3Ŕ���j֯C�H�@I���-�?!G��j>ӵ����(���~������:��������c�_A.�����|�W\q�f^`����v����9ҥ��͹W�s֝�����uC�V��8���T��d�az�ή�K�mI%o1�3�26\`b����#t���� �"��5=�^D�"��A�<���s����l]��K/U�^z��:��v���3?}�����;�d�޽�S*���!��Z����5�\?�߼���/4�g���߾�\0���i8K�%����D����!�c	 �/�ߪ]�y�دX9�6$7�zp���?v�7�ŧ��*@��FAƱ��f�/��vݒ+�:���8�<�v�j���r��nH'�3.I�H��L����d]��z��#����Ƈ�����=��~�M��X?9�H��S앛�<���ַ�U>q�i�}����?����.��yr��3s�w��<����͞}�~�#�������3�������D[�R��;l�1X��F>�ϖ��?\84�A���y�h���\���u#��k&�G�J�3�#5�T��$$A�eJ�9�����پq�H��_���$[1�l���w'q��k� #�p���fĔ�>gl�cg����y�kf�7�O���O~��|G�\rɑ�����|�k�J����g��|��9�Tb{��]���y���-��������$Iv�y��-��.������]�.���q�X��2Y2\G~寮?8S0#^���A�����Jy�T�������Ҕ0T�2R�c�.3�s�.Q ^2�Z���ͼ��u�R'�����,�ĤZ������ƱR�ib��֎�5�u��l`����r��|;� �[O��_]�5�/�")?��O%��w�5kGG��O����W���nݿq#����� ?�T���0���<����[�u��>����fhb?3�m��o<���{���RgL�o�ޅ��^�4�Ri�g��5[�|��f֔d��m�aD��2U)�~"hv��l���ꀙz��Z�\�űMl&(��*����f�0���{ߞVt���CmH��Ŗ ��R��9����c!q����Gv�t��_���W�p��iӐ�y3��l�ͦI�ZeOe����מv���ׯo?���?�ڵ��������Y5[(p��9��~���:�����?/��yN�coW�}��C�>a�;a��[;k�Zj���5��g!`o56o���b����#�� ����,�{�IJ��?��NF$���: �,1Y)3�s*�p�j�M�� l�L���.�����7Nv��m���%��w������� �f�Z�+M�������7�����>�����3�#kw�M|��:�����yϟ_r�%OZ~,���B ș�4c��+k*�sO\;�$a��1��a�b�=5��,�<~�5��غ�?y��J	!,#��,tb��.sϑa�}�k�3#Ō��N"V:?>P�|��?x�R���h6���,���o�X�6��$i׏?��7m޼�۶m�,m��\���_�����3�ܭ�6��?�+m�����o�!�����4,�E>6��[�2�:V)��n����\ls�֣�O�mt�сI����G/:���X;9��$����&�thG�?uZ�X���'�+Y����N J����/�����j�ۻuj��%�6��v�9/�RP	����_��-�����۷6�f���szu����>�����)c�;v��_8l���E�h��`[�����2��%q�hx1�=�~<�A�����PW�~8�jyWZ���IB���Q��! �0� R��M���}�pKّ��ɲ�׶);z=&/Q����N8��D����(bfG��h�{�84I���_k�4�Hi��D"�b�K�6�^�����W ��ڴ��[sC�_�yi:6J�$Zc�׵Q�"	SZAL�5nD^��A����B�$��:"��A��8�z����iB*�z R���ͷ;�̱i�2�U���?2� H5I��{1����-m?���U.>�8����?Y�5�)�v@��#M�c�2���Abg�,BP�94��i��z,�Z����+�����."�F�F�d)�Rp]˝���\�C��V(��)�t�C9�����&_�j����o���;����P�6�;.CE�)M��8e����jM�wd��za���S�r��Aҋ�l׵0M�%<��L��g�͛���Y�}���˖|��:�	)趢�V�3%H��0T,���8�ܦَ�g�}^?����v�3�Z���I����ꋍ�7���~���M��q���y��?�Hi���(�d����l�t;��t�R�'�bY�����y�С�`V(���Z��vL�ק\t�-��;��$R�X��r��+��1ϐxa�b=��h�U��b�z��OkM�Qe�x���� �������t҈��0CI�ј�'�(	c,N��b$�L�ќ�)�t��z���;�V?N���l�{�]iT�fm�a�D-b#�vl:�� �O1���3�8#�:qV �J~���Q����[h�Yd$g�(�{2���ἃ֚BƤށD	�YT���Nv�6@�WT�U%?���/a<�6UZȍ�H�\��<ł?�>j]�k=��b_s���b�D �,J�DiH�?v�/���݄j��!S�������.~�IXU�3�cu�i�FKYvϴ�9��)�M/��M(f�=~]����4A��I��@'o�b}�h�A�Jh�Tc�{�Vl�|ɶ�Zݚ/��qP��Cid��� �H#�EDI�6�d�]��4ŏ��h\ebj�Fc	#ؐ��0ttnχC�mf�z��G�eԵE*W.<�'`U�7�s�I	Q�Y���I�2��	�;x}O��}׃*��0�IDAT-=�-K'��U��H��Bu��͇Z����cE�`(ga���#k�F!��?E͏��־J�iw��j�C����r��2D�u�T-9f8����S�Q�����jދ� �g>�b�f\JR1ר�����-Sc�9ȟk>�fG�vѐ`���~Bj(R��l:n�s�J})%�f?�H )=�?^�w?�����$1 ����/l_;r���J��tXU�>�܆nZk۱�b)��2S�$Dc�(h:�[k���O����4���K쥈4�2L��d��&���K������b��U%�P|N�~�e=Hh����[m�����,��m�co�|�������/��8��\r���S!@%q͑�f�f%=�"�a�r�\���˟�R�z1t>�J~%�>���$�l�=�>���������]��;�r�\71Ti�[����t�-���X�|%/I�˲ѹ2k*�����]k����j�����2��5k$G�_Q�W����s[�$�P�~�<7�%;?O�T�P�b�^L�4ssM� �ul�)	?�oX�[q���|���"�^��=3؇�X;U��l{�q� ��d� ����Zؽ���*��疽��gd�$ALh��a���(�n�z"�Źo<�����f�Z3j��أ:��� �4�#C%D�O��={���R��{<��N>G���y�:��VT�U%��|nCM!�ȨX$��1>6B���7�����(Aa��b��o��V��lޚ%=�$C 2F�{�'�������ӕ���,�{d26��d�!�b�\�^Q�W���#[�=[BЊ���lc���e���Bb��~���?ށ,ۢT*��4z\�Gzw�� u��H���'02<�}����3G����a���b�\!G��E�0[�J~���lX�����tLaa����R(�9xx��2�4�B�~׻}���ĝ� )v�qw�ON,� \�EFF*ض���0�c�)n�ahp��S�U&?L~�=�B^���3���$v~h�r����4MQ� }� �T*S��z���|�A<>*�(Q4��Oyρن[(��<�{���R�@/��dsH!i����+{��������7=�!�����=����I?JM�4�#���ӥ���ם���$�Ԑhn*9;+��Ө��2�{%%1���2�f�4��=�ݕ=�kUɿ൛��lC�{�.�C�C��f����eQ�����r�$��Ւ� Z��]J�8�K,����4IN˦>�f�0eg2�4$����0�\���+x��L�����7�j����~���9��L�����@!O1��oy-�\wݾ�֚(N�i8���0N�} "������Z=�%)�e�H[�0�M�C')I������YY{?����g8�Vu�#@G�ɢ0bjjL�����[W-��2��I�0�|.[dr|�C��t:1B� i�v/!����Ϛ�����Vy�\B5m���)d�T�*�qL���Hse-ͫJ���>�i��4�06L�G�g�Q�$;X*��W�P�9?s�ٞ���0��r˝;�]X�T(b� qΞG���u����c�叅�EG�/�q�ڎ�\��g�Ԛ�Q�y��p�}���<����� o羺3���[5U�R*uC��6qFؓS�?��:�n=]g�B���O��y�[�ʗK:�>�!����<���-�?u�q��?ڻH�Ojz�8~������\���>#��hr|��e��I�����Ͽa��m�����4iz�K���0ej ���P���.�����jp����?�����C9��'A�X�-S.X���0x��q��8 X��n�\�E*F�9�|Ɖf�������4�u�c�����������X{:h��X�;7��K?�$�,7�6����������~�(�2-����b�b!G��F)=���qJ�ǖ�)�B�R�?w���	�qx������$'���b>G��]wd~�{�Y��+��˚|�5�e�i����:*u��:�pO~+�;y�0�T*�����w��,q337G��#MR*���Gjs�yǩ��Iy`��E����*RJ! y�Q2��k9��[�bߑ%~��������������j�	{�ghh�n�'IR��"Q��},�mY(��ՌO�&5Ӭ��И�������G�t�}���U�����_V�����3\m'.�5���湱}K)���T6m\ǩg??����[��%$�N�n�����QB��S(����0R��y���K�>��,M�T���ʦ��X����0�h�ۼ�-������WT��u����k�{o����ͯ;筼wb��3x^H�ӡ���{}�>L*Ҷ��{�D$]��4�����z �8�ed�!�6�X)5��B���l�Y�`e��;��`�~���� �Z{E�_U������>u�얳��6:�5ۦT�r?w��T%�bt��1�}?��ݯ���#/�=)�(�N*R���v���2;Z�Џ�Ɋ'��C-U.ژk-;�I��'!%;4L��ذvpE�_U�?w�}O{mƯ��۽SH����p�XǴ�]�$��E�=/�N��o�f�|sΑ����ѓ�:A?�D�"}��W-�

 

That looks like the .png data from base_m.php.  ($character variable)

 

Here is my full code:

 

// Create image instances
$character = imagecreatefrompng("./img/nrpg/base_m.png");

$sword = imagecreatefrompng("./img/nrpg/swords/sword1.png");

$boots = imagecreatefrompng("./img/nrpg/boots/boots1.png");

// Copy Width height = last 2 variables
imagecopy($character,  $sword, -2, 21, 0, 0, 39, 39);
imagecopy($character,  $boots, 37, 75, 0, 0, 38, 35);

// Output and free from memory
//header('Content-Type: image/png');
imagesavealpha($character,true);
imagesavealpha($sword,true);
imagesavealpha($boots,true);

imagepng($character);
  echo $character;
  
  exit;
  
  

  imagedestroy($character);
  imagedestroy($sword);
  imagedestroy($boots);

 

When I uncomment the //header, it shows that blank image.  Resource 21 #id means what?  :o

 

 

 

Link to comment
Share on other sites

Bah, you need to comment this line:

header('Content-Type: image/png');

and not comment this line, or you could, but no point:

imagepng($character);

 

sorry :P

 

Also, you can check if imagecreatefrompng(); works with the file you try to use it with by setting it into an if, as it returns false if it isn't able to create it.

http://php.net/manual/en/function.imagecreatefrompng.php

 

So basically what I'm saying is that you can:

if($character==false){
echo 'wasn\'t able to create image';
}else{
echo 'was able to create the image';
}

 

Link to comment
Share on other sites

Bah, you need to comment this line:

header('Content-Type: image/png');

and not comment this line, or you could, but no point:

imagepng($character);

 

sorry :P

 

Hmm, it seems the data is being decoded by something?

 

When I do that, no errors, and it echoes out:

 

�PNG  IHDR_m���S IDATx���y�fU}��Yk���V�[su���6�Ȩ"AEq��D�ј�I0&7����I�9��7�&j�"��q�2R��ϟ~��y�U%��w�Ҕ3�a��־���%O<����^�p%L�i�+��?�o��j��Y��<`9�09��"I�^t⃻f����� '�����r�կ*��4]��43Z����Z2���3����"�M׷�x��y���C)�h���J~���hz���qM�89�tl�T,W5~�C%fj�3��ܜ�Xь�'V��l�X��$�D��c���R�"ׯ_�m����Rd�l��SK�*^���g���2��ur���FP����H�*g#�?0K�T1YBN�a��2-�+tj�������HT^]mC�vЦDJ#�PQ�v%�1��9D���F:!r_ �,���b�L��;6d�OI�lǁ����Y,������_�ꪫ�������*7?ksO0�i�`�v?dr��%9�bt���0Bx!:���"��Hʱ҄n�h��I��4 ���:.�J�p���/,W&s_S��7*��aP.��T*��~��_����<���8y`o�}���q-�N�C#LA	�BHRD��,B"��8.B��9�A��,�;�]n�LJ�BQ4�0�4�����?|��̥�%���H������;w��:��\x���X�/`K1y��JC��G,�9�iѵ|g[����*g�G� �B���aID��؈B��!7a�Iu�Ƀ��.w0��<��ԩ2�a��Ǥ�M��֑�ƴV/��ܷo�711��R�$ k׮=���W���^t�E�Ro�<��1,�4�49�������4�pC�AK`�]D3�������@��X��_��G�H��}�nxj�,�-��mi^=V �wȇ�͐�ކn�u�i��y��m��6{�9�l�m�4M�R�q��7MOO�����{���C�� �>�'?��i�Im/���R+`i��P�b�%���X7 ��_��tfN�n?a�b�ݳ ���)�qB/�(�`��XS�z"ٻ�(�Z���i|��r�˛n�i@.�@��֎m۶����>��ϟ��>�%��FǞ$���T�d�y S$tc�G3�U�G:Jd!��D?F:Y��`��べ;���?V��M5}RZqL#�	��A�RT`�n6�-���l��XY)ȇ~����y����RbRJ�4e��͛7l�p�_��_�ɷ��6�KT	ѓD�d0	c�8F�&J�T��\6����� �9����*�0l�d�T�6@#c�M���i����4%kYT���l��sL8VV �X,�|�5�,�Y��uB���l�P�)�q ����� y�UWun�馿�����M�6��~�ٱ ���#48j�������]�v�yk����Q`l����S��9���m�@�u�Rv�B�ޭm���nG��C/�~�BkH����D /N�?N�g��1ߏp]Ǜ/ˉ� Itm�޼��y����UQ���?�Y�,V&��Y�f��?�?���>��O_;55E.�{�|�4� ��c�T�� _�җ.Y�7x TCE5T,�c�cﶇ2e!�egrT}E;N"i�����x��rGEma;����2�G��G�3S�9\�X��xA������}������zx��(Ph�R�4��羊uC�ͭzw{���h�4Z�����'��_�rgll�ϯ���s�8�������R"�����	�4M���p� x� 7\u�y���"L�jݣ��8N��� &2�oq�p�����u"29q���|_G�H�G�A��(���(b�0T�i�IJ���MX�+�TbI.�v�����(�@���t:Z�=m=�f�E����΃gv��7M)����q��������������������E׬aDJ�a���c+��XV�iF�v|V��[Y��Y��c��}��CtF3�(��9EwZd�D��i/���t� �6-�ԘX&X$��M&�yضL�mZ?'o��m�w[����ً L�0�9��;�}�.�����X�����r���?��?�yݺuG��J1�mۊER�|���я~��W�M����e��������:��N��z��{}��r��X��ӎ�0���d�p�V��t�kx-��Wt:!K�m�~�m[�&dlǀ�+k9ǚ��?Uh�A�C�zk��A�O�L�f��a�`+�d��O���[n�^}�������SSSE�͛y�)�`�1��Q�i�<��C���'?�vV���FQ,�_k,���.��=�.��f̝k��\ T�1[�2����[���#Z�6i���5���r' �5S�35a*h���/��ߞ^��5	�V��{�&��aa�%���o����Z�B}�Z��j���������>�����K%:��.����&�����q���n�����װ�08��X�N����Ρ&�:�^�Q������ˊ��"�)վ�H͟�z�L��C}�C�]̓�!P,���^���������^q��M	a"��*��V�@]��q"�!��B��I���@qht����J������_�O���?�12I����9����j���|>?���~��+��r++TN�+ lg���hy�?C�m����r��b 9#e�d��[�)r��1���:���5��`��H����4���#7�v�g�c�!P�4�K����Vd�7�^L�Q�D�͆�C�1:L�A��#���:u�(�lY	��'_^v�e�����/�䒿!M������� x������� W_}������y+P��E�2����4+�ɁF�N�6���4���ﶙ�v�;�e��vv���h1#�B�����]K\�����5����f���A��L��,���0|]����R�P3Ŕ���j֯C�H�@I���-�?!G��j>ӵ����(���~������:��������c�_A.�����|�W\q�f^`����v����9ҥ��͹W�s֝�����uC�V��8���T��d�az�ή�K�mI%o1�3�26\`b����#t���� �"��5=�^D�"��A�<���s����l]��K/U�^z��:��v���3?}�����;�d�޽�S*���!��Z����5�\?�߼���/4�g���߾�\0���i8K�%����D����!�c	 �/�ߪ]�y�دX9�6$7�zp���?v�7�ŧ��*@��FAƱ��f�/��vݒ+�:���8�<�v�j���r��nH'�3.I�H��L����d]��z��#����Ƈ�����=��~�M��X?9�H��S앛�<���ַ�U>q�i�}����?����.��yr��3s�w��<����͞}�~�#�������3�������D[�R��;l�1X��F>�ϖ��?\84�A���y�h���\���u#��k&�G�J�3�#5�T��$$A�eJ�9�����پq�H��_���$[1�l���w'q��k� #�p���fĔ�>gl�cg����y�kf�7�O���O~��|G�\rɑ�����|�k�J����g��|��9�Tb{��]���y���-��������$Iv�y��-��.������]�.���q�X��2Y2\G~寮?8S0#^���A�����Jy�T�������Ҕ0T�2R�c�.3�s�.Q ^2�Z���ͼ��u�R'�����,�ĤZ������ƱR�ib��֎�5�u��l`����r��|;� �[O��_]�5�/�")?��O%��w�5kGG��O����W���nݿq#����� ?�T���0���<����[�u��>����fhb?3�m��o<���{���RgL�o�ޅ��^�4�Ri�g��5[�|��f֔d��m�aD��2U)�~"hv��l���ꀙz��Z�\�űMl&(��*����f�0���{ߞVt���CmH��Ŗ ��R��9����c!q����Gv�t��_���W�p��iӐ�y3��l�ͦI�ZeOe����מv���ׯo?���?�ڵ��������Y5[(p��9��~���:�����?/��yN�coW�}��C�>a�;a��[;k�Zj���5��g!`o56o���b����#�� ����,�{�IJ��?��NF$���: �,1Y)3�s*�p�j�M�� l�L���.�����7Nv��m���%��w������� �f�Z�+M�������7�����>�����3�#kw�M|��:�����yϟ_r�%OZ~,���B ș�4c��+k*�sO\;�$a��1��a�b�=5��,�<~�5��غ�?y��J	!,#��,tb��.sϑa�}�k�3#Ō��N"V:?>P�|��?x�R���h6���,���o�X�6��$i׏?��7m޼�۶m�,m��\���_�����3�ܭ�6��?�+m�����o�!�����4,�E>6��[�2�:V)��n����\ls�֣�O�mt�сI����G/:���X;9��$����&�thG�?uZ�X���'�+Y����N J����/�����j�ۻuj��%�6��v�9/�RP	����_��-�����۷6�f���szu����>�����)c�;v��_8l���E�h��`[�����2��%q�hx1�=�~<�A�����PW�~8�jyWZ���IB���Q��! �0� R��M���}�pKّ��ɲ�׶);z=&/Q����N8��D����(bfG��h�{�84I���_k�4�Hi��D"�b�K�6�^�����W ��ڴ��[sC�_�yi:6J�$Zc�׵Q�"	SZAL�5nD^��A����B�$��:"��A��8�z����iB*�z R���ͷ;�̱i�2�U���?2� H5I��{1����-m?���U.>�8����?Y�5�)�v@��#M�c�2���Abg�,BP�94��i��z,�Z����+�����."�F�F�d)�Rp]˝���\�C��V(��)�t�C9�����&_�j����o���;����P�6�;.CE�)M��8e����jM�wd��za���S�r��Aҋ�l׵0M�%<��L��g�͛���Y�}���˖|��:�	)趢�V�3%H��0T,���8�ܦَ�g�}^?����v�3�Z���I����ꋍ�7���~���M��q���y��?�Hi���(�d����l�t;��t�R�'�bY�����y�С�`V(���Z��vL�ק\t�-��;��$R�X��r��+��1ϐxa�b=��h�U��b�z��OkM�Qe�x���� �������t҈��0CI�ј�'�(	c,N��b$�L�ќ�)�t��z���;�V?N���l�{�]iT�fm�a�D-b#�vl:�� �O1���3�8#�:qV �J~���Q����[h�Yd$g�(�{2���ἃ֚BƤށD	�YT���Nv�6@�WT�U%?���/a<�6UZȍ�H�\��<ł?�>j]�k=��b_s���b�D �,J�DiH�?v�/���݄j��!S�������.~�IXU�3�cu�i�FKYvϴ�9��)�M/��M(f�=~]����4A��I��@'o�b}�h�A�Jh�Tc�{�Vl�|ɶ�Zݚ/��qP��Cid��� �H#�EDI�6�d�]��4ŏ��h\ebj�Fc	#ؐ��0ttnχC�mf�z��G�eԵE*W.<�'`U�7�s�I	Q�Y���I�2��	�;x}O��}׃*��0�IDAT-=�-K'��U��H��Bu��͇Z����cE�`(ga���#k�F!��?E͏��־J�iw��j�C����r��2D�u�T-9f8����S�Q�����jދ� �g>�b�f\JR1ר�����-Sc�9ȟk>�fG�vѐ`���~Bj(R��l:n�s�J})%�f?�H )=�?^�w?�����$1 ����/l_;r���J��tXU�>�܆nZk۱�b)��2S�$Dc�(h:�[k���O����4���K쥈4�2L��d��&���K������b��U%�P|N�~�e=Hh����[m�����,��m�co�|�������/��8��\r���S!@%q͑�f�f%=�"�a�r�\���˟�R�z1t>�J~%�>���$�l�=�>���������]��;�r�\71Ti�[����t�-���X�|%/I�˲ѹ2k*�����]k����j�����2��5k$G�_Q�W����s[�$�P�~�<7�%;?O�T�P�b�^L�4ssM� �ul�)	?�oX�[q���|���"�^��=3؇�X;U��l{�q� ��d� ����Zؽ���*��疽��gd�$ALh��a���(�n�z"�Źo<�����f�Z3j��أ:��� �4�#C%D�O��={���R��{<��N>G���y�:��VT�U%��|nCM!�ȨX$��1>6B���7�����(Aa��b��o��V��lޚ%=�$C 2F�{�'�������ӕ���,�{d26��d�!�b�\�^Q�W���#[�=[BЊ���lc���e���Bb��~���?ށ,ۢT*��4z\�Gzw�� u��H���'02<�}����3G����a���b�\!G��E�0[�J~���lX�����tLaa����R(�9xx��2�4�B�~׻}���ĝ� )v�qw�ON,� \�EFF*ض���0�c�)n�ahp��S�U&?L~�=�B^���3���$v~h�r����4MQ� }� �T*S��z���|�A<>*�(Q4��Oyρن[(��<�{���R�@/��dsH!i����+{��������7=�!�����=����I?JM�4�#���ӥ���ם���$�Ԑhn*9;+��Ө��2�{%%1���2�f�4��=�ݕ=�kUɿ൛��lC�{�.�C�C��f����eQ�����r�$��Ւ� Z��]J�8�K,����4IN˦>�f�0eg2�4$����0�\���+x��L�����7�j����~���9��L�����@!O1��oy-�\wݾ�֚(N�i8���0N�} "������Z=�%)�e�H[�0�M�C')I������YY{?����g8�Vu�#@G�ɢ0bjjL�����[W-��2��I�0�|.[dr|�C��t:1B� i�v/!����Ϛ�����Vy�\B5m���)d�T�*�qL���Hse-ͫJ���>�i��4�06L�G�g�Q�$;X*��W�P�9?s�ٞ���0��r˝;�]X�T(b� qΞG���u����c�叅�EG�/�q�ڎ�\��g�Ԛ�Q�y��p�}���<����� o羺3���[5U�R*uC��6qFؓS�?��:�n=]g�B���O��y�[�ʗK:�>�!����<���-�?u�q��?ڻH�Ojz�8~������\���>#��hr|��e��I�����Ͽa��m�����4iz�K���0ej ���P���.�����jp����?�����C9��'A�X�-S.X���0x��q��8 X��n�\�E*F�9�|Ɖf�������4�u�c�����������X{:h��X�;7��K?�$�,7�6����������~�(�2-����b�b!G��F)=���qJ�ǖ�)�B�R�?w���	�qx������$'���b>G��]wd~�{�Y��+��˚|�5�e�i����:*u��:�pO~+�;y�0�T*�����w��,q337G��#MR*���Gjs�yǩ��Iy`��E����*RJ! y�Q2��k9��[�bߑ%~��������������j�	{�ghh�n�'IR��"Q��},�mY(��ՌO�&5Ӭ��И�������G�t�}���U�����_V�����3\m'.�5���湱}K)���T6m\ǩg??����[��%$�N�n�����QB��S(����0R��y���K�>��,M�T���ʦ��X����0�h�ۼ�-������WT��u����k�{o����ͯ;筼wb��3x^H�ӡ���{}�>L*Ҷ��{�D$]��4�����z �8�ed�!�6�X)5��B���l�Y�`e��;��`�~���� �Z{E�_U������>u�얳��6:�5ۦT�r?w��T%�bt��1�}?��ݯ���#/�=)�(�N*R���v���2;Z�Џ�Ɋ'��C-U.ژk-;�I��'!%;4L��ذvpE�_U�?w�}O{mƯ��۽SH����p�XǴ�]�$��E�=/�N��o�f�|sΑ����ѓ�:A?�D�"}��W-�

 

Those question marks and stuff does not look valid.

 

When I do the same EXACT thing on image.php with no $_POST or using <form method=post>

 

My data is:

 

?PNG  IHDR_m???S IDATx???y?fU}??Yk???V?[su???6??"AEq??D???I0&7????I?9??7?&j?"??q?2R???~??y?U%??w??3?a??????%O< ???^?p%L?i?+??ª?o??j??Y??<`9?09??"I?^t?f????? '?????r??*??4]??43Z????Z2???3????"?M??x??y???C)?h???J~???hz???qM?89?tl?T,W5~?C%fj?3????X??'V??l?X??$?D??c???R?"?_?m????Rd?l??SK?*^???g???2??ur???FP????H?*g#?Ï0K?T1YBN?a??2-?+tj???????HT^]mC?v?DJ#?PQ?v%?1??9D???F:!r_ ?,???b?L??;6d?OI?l?????Y,??????_?????????*7?ksO0?i?`?v?dr??%9?bt?0Bx!:???"??H??n?h??I??4 ???:.?J?p???/,W&s_S??7*??aP.??T*??~??_????<???8y`o?}???q-?N?C#LA	?BHRD??,B"??8.B??9?A??,?;?]n?LJ?BQ4?0?4?????¾|????%???H??????;w??:??\x???X?/`K1y??JC??G,?9?i?|g[????*g?G? ?B???aID???B??!7a?Iu????.w0??<???2?a????M?????V/???o?711??R?$	k?=???W???^t?E?Ro?<??1,?4?49???????4?pC?AK`?]D3???????@??X??_??G?H??}?nxj?,?-??mi^=V ?w?????n?u?i??y??m??6{?9?l?m?4M?R?q??7MOO?????{???C?? ?>?'Ð??i?Im/???R+`i??P?b?%???X7 ? _??tfN?n?a?b?? ???)?qB/?(?`??XS?z"??(?Z???i|??r??n?i@.?@???m?????>?????>?%??F?$???T?d?y S$tc?G3?U?G:Jd!??D?F:Y??`???;???ÔV??M5}RZqL#?	??A?RT`?n6?-???l??XY)?~????y????RbRJ?4e???7l?p?_??_????6?KT	?D?d0	c?8F?&J?T??\6????? ?9????*?0l?d T?6@#c?M???i????4%kYT???l??sL8VV ?X,?|?5?,?Y??uB???l?P?)?q ????? y?UWun???????M?6??~?? ???#48j???????]?v?yk????Q`l????S??9???m?@?u?Rv?B??m???nG??C/?~?BkH?? ?D /N?ÔN?g??1?p]?/?? Itm????y????UQ???²?Y?,V&??Y?f????????>??O_;55E.?{?|?4? ??c?T?? _??.Y?7x TCE5T,?c?c?2e!?egrT}E;N"i?????x??rGEma;????2?G??G?3S?9\?X??xA??????}??????zx??(Ph?R?4???uC??zw{???h?4Z?????'??_?rgll?????s?8???????R"?????	?4M???p? x? 7\u?y???"L?j???8N??? &2?oq?p?????u"29q???|_G?H?G?A??(???(b?0T?i?IJ???MX?+?TbI.?v?????(?@???t:Z?=m=?f?E?????gv??7M)????q????????????????????E?aDJ?a???c+??XV?iF?v|V??[Y??Y??c??}??CtF3?(??9EwZd?D??i/???t? ?6-??X&X$??M&?y?L?mZÙ'o??m?w[????? L?0?9??;?}?.?????X?????r????????y?uG??J1?m?ER?|????~??W?M????e????????:??N??z??{}??r??X????0???d?p?V??t?kx-??Wt:!K?m?~?m[?&dl??+k9????Uh?A?C?zk??A?O?L?f??a?`+?d??O???[n?^}???????SSSE??y?)?`?1??Q?i?<??C???'??vV???FQ,?_k,???.??=?.??f?k??\ T?1[?2????[???#Z?6i???5???r' ?5S?35a*h???/???^??5	?V??{?&??aa?%???o????Z?B}?Z??j?????????>?????K%:??.????&?????q???n???????08??X?N?????&?:?^?Q??????????"?)??H??z?L??C}?C?]??!P,???^?????????^q??M	a"??*??V?@]??q"?!??B??I???@qht????J??????_?O?????12I????9????j???|>????~??+??r++TN?+ lg???hy??C?m????r??b 9#e?d??[?)r??1???:???5??`??H????4???#7?v?g?c?!P?4?K????Vd?7?^L?Q?D???C?1:L?A??#???:u?(?lY	??'_^v?e?????/??!M??????? x??????? W_}??????y+P??E?2????4+??F?N?6???4?????v?;?e??vv???h1#?B?????]K\?????5????f???A??L??,???0|]????R?P3????j?C?H?@I???-?ö!G??j>?????(???~??????:????????c?_A.?????|?W\q?f^`????v????9?????W?s??????uC?V??8???T??d?az???K?mI%o1?3?26\`b????#t???? ?"??5=?^D?"??A?<???s????l]??K/U?^z??:??v???3?}?????;?d???S*???!??Z????5?\?????????/4?g?????\0???i8K?%????D????!?c	 ?/??]?y??X9?6$7?zp????v?7????*@??FA???f?/??v?+?:???8?<?v?j???r??nH'?3.I?H??L????d]??z??#??????????=??~?M??X?9?H??S??<?????U>q?i?}?????????.??yr??3s?w??<?????}?~?#???????3???????D[?R??;l?1X??F>?????\84?A???y h???\???u#??k&?G?J?3?#5?T??$$A?eJ?9??????q?H??_???$[1?l???w'q??k? #?p???f??>gl?cg????y?kf?7?O???O~??|G?\r??????|?k?J????g??|??9?Tb{??]???y???-????????$Iv?y??-??.??????]?.???q?X??2Y2\G~??8S0#^???A?????Jy?T????????0T?2R?c?.3?s?.Q ^2?Z??????u?R'?????,??Z???????R?ib????5?u??l`????r??|;? ?[O??_]?5?/?")???O%??w?5kGG??O????W???n?q#????? ??T???0???<????[?u??>????fhbÉ3?m??o<???{???RgL?o????^?4?Ri?g??5[?|??f?d??m?aD??2U)?~"hv??l????z??Z?\??Ml&(??*????f?0???{?Vt???CmH??? ??R??9????c!q????Gv?t??_???W?p??i??y3??l??I?ZeOe?????v????o???????????????Y5[(p??9??~???:??????/??yN?coW?}??C?>a?;a??[;k?Zj???5??g!`o56o???b????#?? ????,?{?IJ?????NF$???: ?,1Y)3?s*?p?j?M?? l?L???.?????7Nv??m???%??w??????? ?f?Z?+M???????7?????>?????3?#kw?M|??:?????y?_r?%OZ~,???B ??4c??+k*?sO\;?$a??1??a?b?=5??,?<~?5????????y??J	!,#??,tb??.s?a?}?k?3#???N"V:?>P?|???x?R???h6???,???o?X?6??$i????7m???m?,m??\???_?????3???6????+m?????o?!?????4,?E>6??[?2?:V)??n????\ls???O?mt??I????G/:???X;9??$????&?thG?ËuZ?X???'?+Y????N J????/?????j??uj??%?6??v?9/?RP	????_??-??????6?f???szu????>?????)c?;v??_8l?? E?h??`[?????2??%q?hx1?=?~<?A?????PW?~8?jyWZ???IB???Q??! ?0? R??M???}?pK??????);z=&/Q????N8??D????(bfG??h?{?84I???_k?4?Hi??D"?b?K?6?^?????W ?????[sC?_?yi:6J?$Zc??Q?"	SZAL?5nD^??A????B?$??:"??A??8?z????iB*?z	R????;??i?2?U???ô2? H5I??{1????-m????U.>?8?????Y?5?)?v@??#M?c?2???Abg?,BP?94??i??z,?Z????+?????."?F?F?d)?Rp]????\?C??V(??)?t?C9?????&_?j????o???;????P?6?;.CE?)M??8e????jM?wd??za???S?r??A??l?0M?%<??L??g?????Y?}????|??:?	)??V?3%H??0T,???8????g?}^?????v?3?Z???I??????7???~???M??q???y????Hi???(?d????l?t;??t?R?'?bY?????y???`V(???Z??vL??\t?-??;??$R?X??r??+??1?xa?b=??h?U??b?z??OkM?Qe?x???? ???????t???0CI???'?(	c,N??b$?L???)?t??z???;?V?N???l?{?]iT?fm?a?D-b#?vl:?? ?O1???3?8#?:qV ?J~???Q????[h?Yd$g?(?{2?????B??D	?YT???Nv?6@?WT?U%????/a<?6UZ??H?\??<?ž?>j]?k=??b_s???b?D ?,J?DiH?????v?/????j??!S???????.~?IXU?3?cu?i?FKYv??9??)?M/ ?M(f?=~]????4A??I??@'o?b}?h?A?Jh?Tc?{?Vl?|??Z?/??qP??Cid??? ?H# EDI?6?d?]??4???h\ebj?Fc	#???0ttn?C?mf?z??G?e?E*W.<?'`U?7?s?I	Q?Y???I?2??	?;x}O??}?*??0?IDAT-=?-K'??U??H??Bu???Z????cE?`(ga???#k?F!???E????J?iw??j?C????r??2D?u?T-9f8????S?Q?????j?? ?g>?b?f\JR1??????-Sc?9?k>?fG?v?`???~Bj(R??l:n?s?J})%?f??H )=??^?w??????$1 ????/l_;r???J??tXU?>??nZk??b)??2S?$Dc?(h:?[k???O????4???K?4?2L??d??&???K??????b??U%?P|N?~?e=Hh????[m?????,??m?co?|???????/??8??\r???S!@%q??f?f%=?"?a?r?\?????R?z1t>?J~%?>???$?l?=?>?????????]??;?r?\71Ti?[????t?- ??X?|%/I???2k*?????]k????j?????2??5k$G?_Q?W????s[?$?P?~?<7?%;?O?T?P?b??^L?4ssM? ?ul?)	Ä?oX?[q ??|???"?^??=3??X;U??l{?q? ??d? ????Z????*?????gd?$ALh??a???(?n?z"??o<?????f?Z3j???:???	?4?#C%D?O??={???R??{<??N>G???y?:??VT?U%??|nCM! ?X$??1>6B???7?????(Aa??b??o??V??l?%=?$C 2F?{?'???????????,?{d26??d?!?b?\?^Q?W???#[?=[B?? ?lc???e???Bb??~?????,?T*??4z\?Gzw?? u??H???'02<?}????3G????a???b?\!G??E?0[?J~???lX?????tLaa????R(?9xx??2 4?B?~?}????? )v?qw?ON,? \?EFF*????0?c?)n?ahp??S?U&?L~?=?B^???3???$v~h?r????4MQ? }?  T*S??z???|?A<>*?(Q4??Oy??[(??<?{???R?@/??dsH!i????+{????????7=?!?????=????I?JM?4?#???????????$??hn*9;+?????2?{%%1???2?f?4??=??=?kU????lC?{?.?C?C??f????eQ?????r?$???? Z??]J?8?K,????4IN?>?f?0eg2?4$????0?\???+x??L?????7?j????~???9??L?????@!O1??oy-?\w???(N?i8???0N?} "??????Z=?%)?e?H[?0?M?C')I??????YY{ê????g8?Vu?#@G??0bjjL?????[W-??2??I?0?|.[dr|?C??t:1B? i?v/!??????????Vy?\B5m???)d?T?*?qL???Hse-?J???>?i??4?06L?G?g?Q?$;X*??W?P?9?s?????0??r?;?]X?T(b? q?G???u????c???EG?/?q???\??g???Q?y??p?}???<????? o?3???[5U?R*uC??6qF?S????:?n=]g?B???O??y?[??K:?>?!????<???-??u?q????H?Ojz?8~??????\???>#??hr|??e??I??????a??m?????4iz?K???0ej ???P???.?????jp?????????????C9??'A?X?-S.X???0x??q??8 X??n?\?E*F?9?|?f???????4?u?c???????????X{:h??X?;7??Kš?$?,7?6??????????~?(?2-????b?b!G??F)=???qJ???)?B?R??w???	?qx??????$'???b>G??]wd~?{?Y??+???|?5?e?i????:*u?:?pO~+?;y?0?T*?????w??,q337G??#MR*???Gjs?y???Iy`??E????*RJ! y?Q2??k9??[?b?%~??????????????j?	{?ghh?n?'IR??"Q??},?mY(???O?&5???????????G?t?}???U?????_V?????3\m'.?5????}K)???T6m\?g?????[??%$?N?n?????QB??S(????0R??y???K?>??,M?T??????X????0?h???-??????WT??u????k?{o?????;?wb??3x^H?????{}?>L*???{?D$]??4?????z ?8?ed?!?6?X)5??B???l?Y?`e??;??`?~???? ?Z{E?_U??????>u????6:?5?T?ríw??T%?bt??1?}???????#/?=)?(?N*R???v???2;Z????'??C-U.?k-;?I??'!%;4L???vpE?_U??w?}O{m????SH????p?X??]?$??E?=/?N??o?f?|s???????:A??D?"}??W-?

 

Which is the correct PNG Data, something is messing up with my data through the <form> submit, is it some type of enctype?  Is there a <form parameter that makes it so doesn't do any encoding? all I am using is <form method="post"> something is screwing it up while submitting. hmmmm

 

This forum's bbcode will not display the correct png data obviously, but you know those question marks are not valid, the <form tags are screwing it up..

Link to comment
Share on other sites

Bah, you need to comment this line:

header('Content-Type: image/png');

and not comment this line, or you could, but no point:

imagepng($character);

 

sorry :P

 

Hmm, it seems the data is being decoded by something?

 

When I do that, no errors, and it echoes out:

 

�PNG  IHDR_m���S IDATx���y�fU}��Yk���V�[su���6�Ȩ"AEq��D�ј�I0&7����I�9��7�&j�"��q�2R��ϟ~��y�U%��w�Ҕ3�a��־���%O<����^�p%L�i�+��?�o��j��Y��<`9�09��"I�^t⃻f����� '�����r�կ*��4]��43Z����Z2���3����"�M׷�x��y���C)�h���J~���hz���qM�89�tl�T,W5~�C%fj�3��ܜ�Xь�'V��l�X��$�D��c���R�"ׯ_�m����Rd�l��SK�*^���g���2��ur���FP����H�*g#�?0K�T1YBN�a��2-�+tj�������HT^]mC�vЦDJ#�PQ�v%�1��9D���F:!r_ �,���b�L��;6d�OI�lǁ����Y,������_�ꪫ�������*7?ksO0�i�`�v?dr��%9�bt���0Bx!:���"��Hʱ҄n�h��I��4 ���:.�J�p���/,W&s_S��7*��aP.��T*��~��_����<���8y`o�}���q-�N�C#LA	�BHRD��,B"��8.B��9�A��,�;�]n�LJ�BQ4�0�4�����?|��̥�%���H������;w��:��\x���X�/`K1y��JC��G,�9�iѵ|g[����*g�G� �B���aID��؈B��!7a�Iu�Ƀ��.w0��<��ԩ2�a��Ǥ�M��֑�ƴV/��ܷo�711��R�$ k׮=���W���^t�E�Ro�<��1,�4�49�������4�pC�AK`�]D3�������@��X��_��G�H��}�nxj�,�-��mi^=V �wȇ�͐�ކn�u�i��y��m��6{�9�l�m�4M�R�q��7MOO�����{���C�� �>�'?��i�Im/���R+`i��P�b�%���X7 ��_��tfN�n?a�b�ݳ ���)�qB/�(�`��XS�z"ٻ�(�Z���i|��r�˛n�i@.�@��֎m۶����>��ϟ��>�%��FǞ$���T�d�y S$tc�G3�U�G:Jd!��D?F:Y��`��べ;���?V��M5}RZqL#�	��A�RT`�n6�-���l��XY)ȇ~����y����RbRJ�4e��͛7l�p�_��_�ɷ��6�KT	ѓD�d0	c�8F�&J�T��\6����� �9����*�0l�d�T�6@#c�M���i����4%kYT���l��sL8VV �X,�|�5�,�Y��uB���l�P�)�q ����� y�UWun�馿�����M�6��~�ٱ ���#48j�������]�v�yk����Q`l����S��9���m�@�u�Rv�B�ޭm���nG��C/�~�BkH����D /N�?N�g��1ߏp]Ǜ/ˉ� Itm�޼��y����UQ���?�Y�,V&��Y�f��?�?���>��O_;55E.�{�|�4� ��c�T�� _�җ.Y�7x TCE5T,�c�cﶇ2e!�egrT}E;N"i�����x��rGEma;����2�G��G�3S�9\�X��xA������}������zx��(Ph�R�4��羊uC�ͭzw{���h�4Z�����'��_�rgll�ϯ���s�8�������R"�����	�4M���p� x� 7\u�y���"L�jݣ��8N��� &2�oq�p�����u"29q���|_G�H�G�A��(���(b�0T�i�IJ���MX�+�TbI.�v�����(�@���t:Z�=m=�f�E����΃gv��7M)����q��������������������E׬aDJ�a���c+��XV�iF�v|V��[Y��Y��c��}��CtF3�(��9EwZd�D��i/���t� �6-�ԘX&X$��M&�yضL�mZ?'o��m�w[����ً L�0�9��;�}�.�����X�����r���?��?�yݺuG��J1�mۊER�|���я~��W�M����e��������:��N��z��{}��r��X��ӎ�0���d�p�V��t�kx-��Wt:!K�m�~�m[�&dlǀ�+k9ǚ��?Uh�A�C�zk��A�O�L�f��a�`+�d��O���[n�^}�������SSSE�͛y�)�`�1��Q�i�<��C���'?�vV���FQ,�_k,���.��=�.��f̝k��\ T�1[�2����[���#Z�6i���5���r' �5S�35a*h���/��ߞ^��5	�V��{�&��aa�%���o����Z�B}�Z��j���������>�����K%:��.����&�����q���n�����װ�08��X�N����Ρ&�:�^�Q������ˊ��"�)վ�H͟�z�L��C}�C�]̓�!P,���^���������^q��M	a"��*��V�@]��q"�!��B��I���@qht����J������_�O���?�12I����9����j���|>?���~��+��r++TN�+ lg���hy�?C�m����r��b 9#e�d��[�)r��1���:���5��`��H����4���#7�v�g�c�!P�4�K����Vd�7�^L�Q�D�͆�C�1:L�A��#���:u�(�lY	��'_^v�e�����/�䒿!M������� x������� W_}������y+P��E�2����4+�ɁF�N�6���4���ﶙ�v�;�e��vv���h1#�B�����]K\�����5����f���A��L��,���0|]����R�P3Ŕ���j֯C�H�@I���-�?!G��j>ӵ����(���~������:��������c�_A.�����|�W\q�f^`����v����9ҥ��͹W�s֝�����uC�V��8���T��d�az�ή�K�mI%o1�3�26\`b����#t���� �"��5=�^D�"��A�<���s����l]��K/U�^z��:��v���3?}�����;�d�޽�S*���!��Z����5�\?�߼���/4�g���߾�\0���i8K�%����D����!�c	 �/�ߪ]�y�دX9�6$7�zp���?v�7�ŧ��*@��FAƱ��f�/��vݒ+�:���8�<�v�j���r��nH'�3.I�H��L����d]��z��#����Ƈ�����=��~�M��X?9�H��S앛�<���ַ�U>q�i�}����?����.��yr��3s�w��<����͞}�~�#�������3�������D[�R��;l�1X��F>�ϖ��?\84�A���y�h���\���u#��k&�G�J�3�#5�T��$$A�eJ�9�����پq�H��_���$[1�l���w'q��k� #�p���fĔ�>gl�cg����y�kf�7�O���O~��|G�\rɑ�����|�k�J����g��|��9�Tb{��]���y���-��������$Iv�y��-��.������]�.���q�X��2Y2\G~寮?8S0#^���A�����Jy�T�������Ҕ0T�2R�c�.3�s�.Q ^2�Z���ͼ��u�R'�����,�ĤZ������ƱR�ib��֎�5�u��l`����r��|;� �[O��_]�5�/�")?��O%��w�5kGG��O����W���nݿq#����� ?�T���0���<����[�u��>����fhb?3�m��o<���{���RgL�o�ޅ��^�4�Ri�g��5[�|��f֔d��m�aD��2U)�~"hv��l���ꀙz��Z�\�űMl&(��*����f�0���{ߞVt���CmH��Ŗ ��R��9����c!q����Gv�t��_���W�p��iӐ�y3��l�ͦI�ZeOe����מv���ׯo?���?�ڵ��������Y5[(p��9��~���:�����?/��yN�coW�}��C�>a�;a��[;k�Zj���5��g!`o56o���b����#�� ����,�{�IJ��?��NF$���: �,1Y)3�s*�p�j�M�� l�L���.�����7Nv��m���%��w������� �f�Z�+M�������7�����>�����3�#kw�M|��:�����yϟ_r�%OZ~,���B ș�4c��+k*�sO\;�$a��1��a�b�=5��,�<~�5��غ�?y��J	!,#��,tb��.sϑa�}�k�3#Ō��N"V:?>P�|��?x�R���h6���,���o�X�6��$i׏?��7m޼�۶m�,m��\���_�����3�ܭ�6��?�+m�����o�!�����4,�E>6��[�2�:V)��n����\ls�֣�O�mt�сI����G/:���X;9��$����&�thG�?uZ�X���'�+Y����N J����/�����j�ۻuj��%�6��v�9/�RP	����_��-�����۷6�f���szu����>�����)c�;v��_8l���E�h��`[�����2��%q�hx1�=�~<�A�����PW�~8�jyWZ���IB���Q��! �0� R��M���}�pKّ��ɲ�׶);z=&/Q����N8��D����(bfG��h�{�84I���_k�4�Hi��D"�b�K�6�^�����W ��ڴ��[sC�_�yi:6J�$Zc�׵Q�"	SZAL�5nD^��A����B�$��:"��A��8�z����iB*�z R���ͷ;�̱i�2�U���?2� H5I��{1����-m?���U.>�8����?Y�5�)�v@��#M�c�2���Abg�,BP�94��i��z,�Z����+�����."�F�F�d)�Rp]˝���\�C��V(��)�t�C9�����&_�j����o���;����P�6�;.CE�)M��8e����jM�wd��za���S�r��Aҋ�l׵0M�%<��L��g�͛���Y�}���˖|��:�	)趢�V�3%H��0T,���8�ܦَ�g�}^?����v�3�Z���I����ꋍ�7���~���M��q���y��?�Hi���(�d����l�t;��t�R�'�bY�����y�С�`V(���Z��vL�ק\t�-��;��$R�X��r��+��1ϐxa�b=��h�U��b�z��OkM�Qe�x���� �������t҈��0CI�ј�'�(	c,N��b$�L�ќ�)�t��z���;�V?N���l�{�]iT�fm�a�D-b#�vl:�� �O1���3�8#�:qV �J~���Q����[h�Yd$g�(�{2���ἃ֚BƤށD	�YT���Nv�6@�WT�U%?���/a<�6UZȍ�H�\��<ł?�>j]�k=��b_s���b�D �,J�DiH�?v�/���݄j��!S�������.~�IXU�3�cu�i�FKYvϴ�9��)�M/��M(f�=~]����4A��I��@'o�b}�h�A�Jh�Tc�{�Vl�|ɶ�Zݚ/��qP��Cid��� �H#�EDI�6�d�]��4ŏ��h\ebj�Fc	#ؐ��0ttnχC�mf�z��G�eԵE*W.<�'`U�7�s�I	Q�Y���I�2��	�;x}O��}׃*��0�IDAT-=�-K'��U��H��Bu��͇Z����cE�`(ga���#k�F!��?E͏��־J�iw��j�C����r��2D�u�T-9f8����S�Q�����jދ� �g>�b�f\JR1ר�����-Sc�9ȟk>�fG�vѐ`���~Bj(R��l:n�s�J})%�f?�H )=�?^�w?�����$1 ����/l_;r���J��tXU�>�܆nZk۱�b)��2S�$Dc�(h:�[k���O����4���K쥈4�2L��d��&���K������b��U%�P|N�~�e=Hh����[m�����,��m�co�|�������/��8��\r���S!@%q͑�f�f%=�"�a�r�\���˟�R�z1t>�J~%�>���$�l�=�>���������]��;�r�\71Ti�[����t�-���X�|%/I�˲ѹ2k*�����]k����j�����2��5k$G�_Q�W����s[�$�P�~�<7�%;?O�T�P�b�^L�4ssM� �ul�)	?�oX�[q���|���"�^��=3؇�X;U��l{�q� ��d� ����Zؽ���*��疽��gd�$ALh��a���(�n�z"�Źo<�����f�Z3j��أ:��� �4�#C%D�O��={���R��{<��N>G���y�:��VT�U%��|nCM!�ȨX$��1>6B���7�����(Aa��b��o��V��lޚ%=�$C 2F�{�'�������ӕ���,�{d26��d�!�b�\�^Q�W���#[�=[BЊ���lc���e���Bb��~���?ށ,ۢT*��4z\�Gzw�� u��H���'02<�}����3G����a���b�\!G��E�0[�J~���lX�����tLaa����R(�9xx��2�4�B�~׻}���ĝ� )v�qw�ON,� \�EFF*ض���0�c�)n�ahp��S�U&?L~�=�B^���3���$v~h�r����4MQ� }� �T*S��z���|�A<>*�(Q4��Oyρن[(��<�{���R�@/��dsH!i����+{��������7=�!�����=����I?JM�4�#���ӥ���ם���$�Ԑhn*9;+��Ө��2�{%%1���2�f�4��=�ݕ=�kUɿ൛��lC�{�.�C�C��f����eQ�����r�$��Ւ� Z��]J�8�K,����4IN˦>�f�0eg2�4$����0�\���+x��L�����7�j����~���9��L�����@!O1��oy-�\wݾ�֚(N�i8���0N�} "������Z=�%)�e�H[�0�M�C')I������YY{?����g8�Vu�#@G�ɢ0bjjL�����[W-��2��I�0�|.[dr|�C��t:1B� i�v/!����Ϛ�����Vy�\B5m���)d�T�*�qL���Hse-ͫJ���>�i��4�06L�G�g�Q�$;X*��W�P�9?s�ٞ���0��r˝;�]X�T(b� qΞG���u����c�叅�EG�/�q�ڎ�\��g�Ԛ�Q�y��p�}���<����� o羺3���[5U�R*uC��6qFؓS�?��:�n=]g�B���O��y�[�ʗK:�>�!����<���-�?u�q��?ڻH�Ojz�8~������\���>#��hr|��e��I�����Ͽa��m�����4iz�K���0ej ���P���.�����jp����?�����C9��'A�X�-S.X���0x��q��8 X��n�\�E*F�9�|Ɖf�������4�u�c�����������X{:h��X�;7��K?�$�,7�6����������~�(�2-����b�b!G��F)=���qJ�ǖ�)�B�R�?w���	�qx������$'���b>G��]wd~�{�Y��+��˚|�5�e�i����:*u��:�pO~+�;y�0�T*�����w��,q337G��#MR*���Gjs�yǩ��Iy`��E����*RJ! y�Q2��k9��[�bߑ%~��������������j�	{�ghh�n�'IR��"Q��},�mY(��ՌO�&5Ӭ��И�������G�t�}���U�����_V�����3\m'.�5���湱}K)���T6m\ǩg??����[��%$�N�n�����QB��S(����0R��y���K�>��,M�T���ʦ��X����0�h�ۼ�-������WT��u����k�{o����ͯ;筼wb��3x^H�ӡ���{}�>L*Ҷ��{�D$]��4�����z �8�ed�!�6�X)5��B���l�Y�`e��;��`�~���� �Z{E�_U������>u�얳��6:�5ۦT�r?w��T%�bt��1�}?��ݯ���#/�=)�(�N*R���v���2;Z�Џ�Ɋ'��C-U.ژk-;�I��'!%;4L��ذvpE�_U�?w�}O{mƯ��۽SH����p�XǴ�]�$��E�=/�N��o�f�|sΑ����ѓ�:A?�D�"}��W-�

 

Those question marks and stuff does not look valid.

 

When I do the same EXACT thing on image.php with no $_POST or using <form method=post>

 

My data is:

 

?PNG  IHDR_m???S IDATx???y?fU}??Yk???V?[su???6??"AEq??D???I0&7????I?9??7?&j?"??q?2R???~??y?U%??w??3?a??????%O< ???^?p%L?i?+??ª?o??j??Y??<`9?09??"I?^t?f????? '?????r??*??4]??43Z????Z2???3????"?M??x??y???C)?h???J~???hz???qM?89?tl?T,W5~?C%fj?3????X??'V??l?X??$?D??c???R?"?_?m????Rd?l??SK?*^???g???2??ur???FP????H?*g#?Ï0K?T1YBN?a??2-?+tj???????HT^]mC?v?DJ#?PQ?v%?1??9D???F:!r_ ?,???b?L??;6d?OI?l?????Y,??????_?????????*7?ksO0?i?`?v?dr??%9?bt?0Bx!:???"??H??n?h??I??4 ???:.?J?p???/,W&s_S??7*??aP.??T*??~??_????<???8y`o?}???q-?N?C#LA	?BHRD??,B"??8.B??9?A??,?;?]n?LJ?BQ4?0?4?????¾|????%???H??????;w??:??\x???X?/`K1y??JC??G,?9?i?|g[????*g?G? ?B???aID???B??!7a?Iu????.w0??<???2?a????M?????V/???o?711??R?$	k?=???W???^t?E?Ro?<??1,?4?49???????4?pC?AK`?]D3???????@??X??_??G?H??}?nxj?,?-??mi^=V ?w?????n?u?i??y??m??6{?9?l?m?4M?R?q??7MOO?????{???C?? ?>?'Ð??i?Im/???R+`i??P?b?%???X7 ? _??tfN?n?a?b?? ???)?qB/?(?`??XS?z"??(?Z???i|??r??n?i@.?@???m?????>?????>?%??F?$???T?d?y S$tc?G3?U?G:Jd!??D?F:Y??`???;???ÔV??M5}RZqL#?	??A?RT`?n6?-???l??XY)?~????y????RbRJ?4e???7l?p?_??_????6?KT	?D?d0	c?8F?&J?T??\6????? ?9????*?0l?d T?6@#c?M???i????4%kYT???l??sL8VV ?X,?|?5?,?Y??uB???l?P?)?q ????? y?UWun???????M?6??~?? ???#48j???????]?v?yk????Q`l????S??9???m?@?u?Rv?B??m???nG??C/?~?BkH?? ?D /N?ÔN?g??1?p]?/?? Itm????y????UQ???²?Y?,V&??Y?f????????>??O_;55E.?{?|?4? ??c?T?? _??.Y?7x TCE5T,?c?c?2e!?egrT}E;N"i?????x??rGEma;????2?G??G?3S?9\?X??xA??????}??????zx??(Ph?R?4???uC??zw{???h?4Z?????'??_?rgll?????s?8???????R"?????	?4M???p? x? 7\u?y???"L?j???8N??? &2?oq?p?????u"29q???|_G?H?G?A??(???(b?0T?i?IJ???MX?+?TbI.?v?????(?@???t:Z?=m=?f?E?????gv??7M)????q????????????????????E?aDJ?a???c+??XV?iF?v|V??[Y??Y??c??}??CtF3?(??9EwZd?D??i/???t? ?6-??X&X$??M&?y?L?mZÙ'o??m?w[????? L?0?9??;?}?.?????X?????r????????y?uG??J1?m?ER?|????~??W?M????e????????:??N??z??{}??r??X????0???d?p?V??t?kx-??Wt:!K?m?~?m[?&dl??+k9????Uh?A?C?zk??A?O?L?f??a?`+?d??O???[n?^}???????SSSE??y?)?`?1??Q?i?<??C???'??vV???FQ,?_k,???.??=?.??f?k??\ T?1[?2????[???#Z?6i???5???r' ?5S?35a*h???/???^??5	?V??{?&??aa?%???o????Z?B}?Z??j?????????>?????K%:??.????&?????q???n???????08??X?N?????&?:?^?Q??????????"?)??H??z?L??C}?C?]??!P,???^?????????^q??M	a"??*??V?@]??q"?!??B??I???@qht????J??????_?O?????12I????9????j???|>????~??+??r++TN?+ lg???hy??C?m????r??b 9#e?d??[?)r??1???:???5??`??H????4???#7?v?g?c?!P?4?K????Vd?7?^L?Q?D???C?1:L?A??#???:u?(?lY	??'_^v?e?????/??!M??????? x??????? W_}??????y+P??E?2????4+??F?N?6???4?????v?;?e??vv???h1#?B?????]K\?????5????f???A??L??,???0|]????R?P3????j?C?H?@I???-?ö!G??j>?????(???~??????:????????c?_A.?????|?W\q?f^`????v????9?????W?s??????uC?V??8???T??d?az???K?mI%o1?3?26\`b????#t???? ?"??5=?^D?"??A?<???s????l]??K/U?^z??:??v???3?}?????;?d???S*???!??Z????5?\?????????/4?g?????\0???i8K?%????D????!?c	 ?/??]?y??X9?6$7?zp????v?7????*@??FA???f?/??v?+?:???8?<?v?j???r??nH'?3.I?H??L????d]??z??#??????????=??~?M??X?9?H??S??<?????U>q?i?}?????????.??yr??3s?w??<?????}?~?#???????3???????D[?R??;l?1X??F>?????\84?A???y h???\???u#??k&?G?J?3?#5?T??$$A?eJ?9??????q?H??_???$[1?l???w'q??k? #?p???f??>gl?cg????y?kf?7?O???O~??|G?\r??????|?k?J????g??|??9?Tb{??]???y???-????????$Iv?y??-??.??????]?.???q?X??2Y2\G~??8S0#^???A?????Jy?T????????0T?2R?c?.3?s?.Q ^2?Z??????u?R'?????,??Z???????R?ib????5?u??l`????r??|;? ?[O??_]?5?/?")???O%??w?5kGG??O????W???n?q#????? ??T???0???<????[?u??>????fhbÉ3?m??o<???{???RgL?o????^?4?Ri?g??5[?|??f?d??m?aD??2U)?~"hv??l????z??Z?\??Ml&(??*????f?0???{?Vt???CmH??? ??R??9????c!q????Gv?t??_???W?p??i??y3??l??I?ZeOe?????v????o???????????????Y5[(p??9??~???:??????/??yN?coW?}??C?>a?;a??[;k?Zj???5??g!`o56o???b????#?? ????,?{?IJ?????NF$???: ?,1Y)3?s*?p?j?M?? l?L???.?????7Nv??m???%??w??????? ?f?Z?+M???????7?????>?????3?#kw?M|??:?????y?_r?%OZ~,???B ??4c??+k*?sO\;?$a??1??a?b?=5??,?<~?5????????y??J	!,#??,tb??.s?a?}?k?3#???N"V:?>P?|???x?R???h6???,???o?X?6??$i????7m???m?,m??\???_?????3???6????+m?????o?!?????4,?E>6??[?2?:V)??n????\ls???O?mt??I????G/:???X;9??$????&?thG?ËuZ?X???'?+Y????N J????/?????j??uj??%?6??v?9/?RP	????_??-??????6?f???szu????>?????)c?;v??_8l?? E?h??`[?????2??%q?hx1?=?~<?A?????PW?~8?jyWZ???IB???Q??! ?0? R??M???}?pK??????);z=&/Q????N8??D????(bfG??h?{?84I???_k?4?Hi??D"?b?K?6?^?????W ?????[sC?_?yi:6J?$Zc??Q?"	SZAL?5nD^??A????B?$??:"??A??8?z????iB*?z	R????;??i?2?U???ô2? H5I??{1????-m????U.>?8?????Y?5?)?v@??#M?c?2???Abg?,BP?94??i??z,?Z????+?????."?F?F?d)?Rp]????\?C??V(??)?t?C9?????&_?j????o???;????P?6?;.CE?)M??8e????jM?wd??za???S?r??A??l?0M?%<??L??g?????Y?}????|??:?	)??V?3%H??0T,???8????g?}^?????v?3?Z???I??????7???~???M??q???y????Hi???(?d????l?t;??t?R?'?bY?????y???`V(???Z??vL??\t?-??;??$R?X??r??+??1?xa?b=??h?U??b?z??OkM?Qe?x???? ???????t???0CI???'?(	c,N??b$?L???)?t??z???;?V?N???l?{?]iT?fm?a?D-b#?vl:?? ?O1???3?8#?:qV ?J~???Q????[h?Yd$g?(?{2?????B??D	?YT???Nv?6@?WT?U%????/a<?6UZ??H?\??<?ž?>j]?k=??b_s???b?D ?,J?DiH?????v?/????j??!S???????.~?IXU?3?cu?i?FKYv??9??)?M/ ?M(f?=~]????4A??I??@'o?b}?h?A?Jh?Tc?{?Vl?|??Z?/??qP??Cid??? ?H# EDI?6?d?]??4???h\ebj?Fc	#???0ttn?C?mf?z??G?e?E*W.<?'`U?7?s?I	Q?Y???I?2??	?;x}O??}?*??0?IDAT-=?-K'??U??H??Bu???Z????cE?`(ga???#k?F!???E????J?iw??j?C????r??2D?u?T-9f8????S?Q?????j?? ?g>?b?f\JR1??????-Sc?9?k>?fG?v?`???~Bj(R??l:n?s?J})%?f??H )=??^?w??????$1 ????/l_;r???J??tXU?>??nZk??b)??2S?$Dc?(h:?[k???O????4???K?4?2L??d??&???K??????b??U%?P|N?~?e=Hh????[m?????,??m?co?|???????/??8??\r???S!@%q??f?f%=?"?a?r?\?????R?z1t>?J~%?>???$?l?=?>?????????]??;?r?\71Ti?[????t?- ??X?|%/I???2k*?????]k????j?????2??5k$G?_Q?W????s[?$?P?~?<7?%;?O?T?P?b??^L?4ssM? ?ul?)	Ä?oX?[q ??|???"?^??=3??X;U??l{?q? ??d? ????Z????*?????gd?$ALh??a???(?n?z"??o<?????f?Z3j???:???	?4?#C%D?O??={???R??{<??N>G???y?:??VT?U%??|nCM! ?X$??1>6B???7?????(Aa??b??o??V??l?%=?$C 2F?{?'???????????,?{d26??d?!?b?\?^Q?W???#[?=[B?? ?lc???e???Bb??~?????,?T*??4z\?Gzw?? u??H???'02<?}????3G????a???b?\!G??E?0[?J~???lX?????tLaa????R(?9xx??2 4?B?~?}????? )v?qw?ON,? \?EFF*????0?c?)n?ahp??S?U&?L~?=?B^???3???$v~h?r????4MQ? }?  T*S??z???|?A<>*?(Q4??Oy??[(??<?{???R?@/??dsH!i????+{????????7=?!?????=????I?JM?4?#???????????$??hn*9;+?????2?{%%1???2?f?4??=??=?kU????lC?{?.?C?C??f????eQ?????r?$???? Z??]J?8?K,????4IN?>?f?0eg2?4$????0?\???+x??L?????7?j????~???9??L?????@!O1??oy-?\w???(N?i8???0N?} "??????Z=?%)?e?H[?0?M?C')I??????YY{ê????g8?Vu?#@G??0bjjL?????[W-??2??I?0?|.[dr|?C??t:1B? i?v/!??????????Vy?\B5m???)d?T?*?qL???Hse-?J???>?i??4?06L?G?g?Q?$;X*??W?P?9?s?????0??r?;?]X?T(b? q?G???u????c???EG?/?q???\??g???Q?y??p?}???<????? o?3???[5U?R*uC??6qF?S????:?n=]g?B???O??y?[??K:?>?!????<???-??u?q????H?Ojz?8~??????\???>#??hr|??e??I??????a??m?????4iz?K???0ej ???P???.?????jp?????????????C9??'A?X?-S.X???0x??q??8 X??n?\?E*F?9?|?f???????4?u?c???????????X{:h??X?;7??Kš?$?,7?6??????????~?(?2-????b?b!G??F)=???qJ???)?B?R??w???	?qx??????$'???b>G??]wd~?{?Y??+???|?5?e?i????:*u?:?pO~+?;y?0?T*?????w??,q337G??#MR*???Gjs?y???Iy`??E????*RJ! y?Q2??k9??[?b?%~??????????????j?	{?ghh?n?'IR??"Q??},?mY(???O?&5???????????G?t?}???U?????_V?????3\m'.?5????}K)???T6m\?g?????[??%$?N?n?????QB??S(????0R??y???K?>??,M?T??????X????0?h???-??????WT??u????k?{o?????;?wb??3x^H?????{}?>L*???{?D$]??4?????z ?8?ed?!?6?X)5??B???l?Y?`e??;??`?~???? ?Z{E?_U??????>u????6:?5?T?ríw??T%?bt??1?}???????#/?=)?(?N*R???v???2;Z????'??C-U.?k-;?I??'!%;4L???vpE?_U??w?}O{m????SH????p?X??]?$??E?=/?N??o?f?|s???????:A??D?"}??W-?

 

Which is the correct PNG Data, something is messing up with my data through the <form> submit, is it some type of enctype?  Is there a <form parameter that makes it so doesn't do any encoding? all I am using is <form method="post"> something is screwing it up while submitting. hmmmm

 

This forum's bbcode will not display the correct png data obviously, but you know those question marks are not valid, the <form tags are screwing it up..

What kind of data is it you're sending with $_POST? =P

Link to comment
Share on other sites

Bah, you need to comment this line:

header('Content-Type: image/png');

and not comment this line, or you could, but no point:

imagepng($character);

 

sorry :P

 

Hmm, it seems the data is being decoded by something?

 

When I do that, no errors, and it echoes out:

 

�PNG  IHDR_m���S IDATx���y�fU}��Yk���V�[su���6�Ȩ"AEq��D�ј�I0&7����I�9��7�&j�"��q�2R��ϟ~��y�U%��w�Ҕ3�a��־���%O<����^�p%L�i�+��?�o��j��Y��<`9�09��"I�^t⃻f����� '�����r�կ*��4]��43Z����Z2���3����"�M׷�x��y���C)�h���J~���hz���qM�89�tl�T,W5~�C%fj�3��ܜ�Xь�'V��l�X��$�D��c���R�"ׯ_�m����Rd�l��SK�*^���g���2��ur���FP����H�*g#�?0K�T1YBN�a��2-�+tj�������HT^]mC�vЦDJ#�PQ�v%�1��9D���F:!r_ �,���b�L��;6d�OI�lǁ����Y,������_�ꪫ�������*7?ksO0�i�`�v?dr��%9�bt���0Bx!:���"��Hʱ҄n�h��I��4 ���:.�J�p���/,W&s_S��7*��aP.��T*��~��_����<���8y`o�}���q-�N�C#LA	�BHRD��,B"��8.B��9�A��,�;�]n�LJ�BQ4�0�4�����?|��̥�%���H������;w��:��\x���X�/`K1y��JC��G,�9�iѵ|g[����*g�G� �B���aID��؈B��!7a�Iu�Ƀ��.w0��<��ԩ2�a��Ǥ�M��֑�ƴV/��ܷo�711��R�$ k׮=���W���^t�E�Ro�<��1,�4�49�������4�pC�AK`�]D3�������@��X��_��G�H��}�nxj�,�-��mi^=V �wȇ�͐�ކn�u�i��y��m��6{�9�l�m�4M�R�q��7MOO�����{���C�� �>�'?��i�Im/���R+`i��P�b�%���X7 ��_��tfN�n?a�b�ݳ ���)�qB/�(�`��XS�z"ٻ�(�Z���i|��r�˛n�i@.�@��֎m۶����>��ϟ��>�%��FǞ$���T�d�y S$tc�G3�U�G:Jd!��D?F:Y��`��べ;���?V��M5}RZqL#�	��A�RT`�n6�-���l��XY)ȇ~����y����RbRJ�4e��͛7l�p�_��_�ɷ��6�KT	ѓD�d0	c�8F�&J�T��\6����� �9����*�0l�d�T�6@#c�M���i����4%kYT���l��sL8VV �X,�|�5�,�Y��uB���l�P�)�q ����� y�UWun�馿�����M�6��~�ٱ ���#48j�������]�v�yk����Q`l����S��9���m�@�u�Rv�B�ޭm���nG��C/�~�BkH����D /N�?N�g��1ߏp]Ǜ/ˉ� Itm�޼��y����UQ���?�Y�,V&��Y�f��?�?���>��O_;55E.�{�|�4� ��c�T�� _�җ.Y�7x TCE5T,�c�cﶇ2e!�egrT}E;N"i�����x��rGEma;����2�G��G�3S�9\�X��xA������}������zx��(Ph�R�4��羊uC�ͭzw{���h�4Z�����'��_�rgll�ϯ���s�8�������R"�����	�4M���p� x� 7\u�y���"L�jݣ��8N��� &2�oq�p�����u"29q���|_G�H�G�A��(���(b�0T�i�IJ���MX�+�TbI.�v�����(�@���t:Z�=m=�f�E����΃gv��7M)����q��������������������E׬aDJ�a���c+��XV�iF�v|V��[Y��Y��c��}��CtF3�(��9EwZd�D��i/���t� �6-�ԘX&X$��M&�yضL�mZ?'o��m�w[����ً L�0�9��;�}�.�����X�����r���?��?�yݺuG��J1�mۊER�|���я~��W�M����e��������:��N��z��{}��r��X��ӎ�0���d�p�V��t�kx-��Wt:!K�m�~�m[�&dlǀ�+k9ǚ��?Uh�A�C�zk��A�O�L�f��a�`+�d��O���[n�^}�������SSSE�͛y�)�`�1��Q�i�<��C���'?�vV���FQ,�_k,���.��=�.��f̝k��\ T�1[�2����[���#Z�6i���5���r' �5S�35a*h���/��ߞ^��5	�V��{�&��aa�%���o����Z�B}�Z��j���������>�����K%:��.����&�����q���n�����װ�08��X�N����Ρ&�:�^�Q������ˊ��"�)վ�H͟�z�L��C}�C�]̓�!P,���^���������^q��M	a"��*��V�@]��q"�!��B��I���@qht����J������_�O���?�12I����9����j���|>?���~��+��r++TN�+ lg���hy�?C�m����r��b 9#e�d��[�)r��1���:���5��`��H����4���#7�v�g�c�!P�4�K����Vd�7�^L�Q�D�͆�C�1:L�A��#���:u�(�lY	��'_^v�e�����/�䒿!M������� x������� W_}������y+P��E�2����4+�ɁF�N�6���4���ﶙ�v�;�e��vv���h1#�B�����]K\�����5����f���A��L��,���0|]����R�P3Ŕ���j֯C�H�@I���-�?!G��j>ӵ����(���~������:��������c�_A.�����|�W\q�f^`����v����9ҥ��͹W�s֝�����uC�V��8���T��d�az�ή�K�mI%o1�3�26\`b����#t���� �"��5=�^D�"��A�<���s����l]��K/U�^z��:��v���3?}�����;�d�޽�S*���!��Z����5�\?�߼���/4�g���߾�\0���i8K�%����D����!�c	 �/�ߪ]�y�دX9�6$7�zp���?v�7�ŧ��*@��FAƱ��f�/��vݒ+�:���8�<�v�j���r��nH'�3.I�H��L����d]��z��#����Ƈ�����=��~�M��X?9�H��S앛�<���ַ�U>q�i�}����?����.��yr��3s�w��<����͞}�~�#�������3�������D[�R��;l�1X��F>�ϖ��?\84�A���y�h���\���u#��k&�G�J�3�#5�T��$$A�eJ�9�����پq�H��_���$[1�l���w'q��k� #�p���fĔ�>gl�cg����y�kf�7�O���O~��|G�\rɑ�����|�k�J����g��|��9�Tb{��]���y���-��������$Iv�y��-��.������]�.���q�X��2Y2\G~寮?8S0#^���A�����Jy�T�������Ҕ0T�2R�c�.3�s�.Q ^2�Z���ͼ��u�R'�����,�ĤZ������ƱR�ib��֎�5�u��l`����r��|;� �[O��_]�5�/�")?��O%��w�5kGG��O����W���nݿq#����� ?�T���0���<����[�u��>����fhb?3�m��o<���{���RgL�o�ޅ��^�4�Ri�g��5[�|��f֔d��m�aD��2U)�~"hv��l���ꀙz��Z�\�űMl&(��*����f�0���{ߞVt���CmH��Ŗ ��R��9����c!q����Gv�t��_���W�p��iӐ�y3��l�ͦI�ZeOe����מv���ׯo?���?�ڵ��������Y5[(p��9��~���:�����?/��yN�coW�}��C�>a�;a��[;k�Zj���5��g!`o56o���b����#�� ����,�{�IJ��?��NF$���: �,1Y)3�s*�p�j�M�� l�L���.�����7Nv��m���%��w������� �f�Z�+M�������7�����>�����3�#kw�M|��:�����yϟ_r�%OZ~,���B ș�4c��+k*�sO\;�$a��1��a�b�=5��,�<~�5��غ�?y��J	!,#��,tb��.sϑa�}�k�3#Ō��N"V:?>P�|��?x�R���h6���,���o�X�6��$i׏?��7m޼�۶m�,m��\���_�����3�ܭ�6��?�+m�����o�!�����4,�E>6��[�2�:V)��n����\ls�֣�O�mt�сI����G/:���X;9��$����&�thG�?uZ�X���'�+Y����N J����/�����j�ۻuj��%�6��v�9/�RP	����_��-�����۷6�f���szu����>�����)c�;v��_8l���E�h��`[�����2��%q�hx1�=�~<�A�����PW�~8�jyWZ���IB���Q��! �0� R��M���}�pKّ��ɲ�׶);z=&/Q����N8��D����(bfG��h�{�84I���_k�4�Hi��D"�b�K�6�^�����W ��ڴ��[sC�_�yi:6J�$Zc�׵Q�"	SZAL�5nD^��A����B�$��:"��A��8�z����iB*�z R���ͷ;�̱i�2�U���?2� H5I��{1����-m?���U.>�8����?Y�5�)�v@��#M�c�2���Abg�,BP�94��i��z,�Z����+�����."�F�F�d)�Rp]˝���\�C��V(��)�t�C9�����&_�j����o���;����P�6�;.CE�)M��8e����jM�wd��za���S�r��Aҋ�l׵0M�%<��L��g�͛���Y�}���˖|��:�	)趢�V�3%H��0T,���8�ܦَ�g�}^?����v�3�Z���I����ꋍ�7���~���M��q���y��?�Hi���(�d����l�t;��t�R�'�bY�����y�С�`V(���Z��vL�ק\t�-��;��$R�X��r��+��1ϐxa�b=��h�U��b�z��OkM�Qe�x���� �������t҈��0CI�ј�'�(	c,N��b$�L�ќ�)�t��z���;�V?N���l�{�]iT�fm�a�D-b#�vl:�� �O1���3�8#�:qV �J~���Q����[h�Yd$g�(�{2���ἃ֚BƤށD	�YT���Nv�6@�WT�U%?���/a<�6UZȍ�H�\��<ł?�>j]�k=��b_s���b�D �,J�DiH�?v�/���݄j��!S�������.~�IXU�3�cu�i�FKYvϴ�9��)�M/��M(f�=~]����4A��I��@'o�b}�h�A�Jh�Tc�{�Vl�|ɶ�Zݚ/��qP��Cid��� �H#�EDI�6�d�]��4ŏ��h\ebj�Fc	#ؐ��0ttnχC�mf�z��G�eԵE*W.<�'`U�7�s�I	Q�Y���I�2��	�;x}O��}׃*��0�IDAT-=�-K'��U��H��Bu��͇Z����cE�`(ga���#k�F!��?E͏��־J�iw��j�C����r��2D�u�T-9f8����S�Q�����jދ� �g>�b�f\JR1ר�����-Sc�9ȟk>�fG�vѐ`���~Bj(R��l:n�s�J})%�f?�H )=�?^�w?�����$1 ����/l_;r���J��tXU�>�܆nZk۱�b)��2S�$Dc�(h:�[k���O����4���K쥈4�2L��d��&���K������b��U%�P|N�~�e=Hh����[m�����,��m�co�|�������/��8��\r���S!@%q͑�f�f%=�"�a�r�\���˟�R�z1t>�J~%�>���$�l�=�>���������]��;�r�\71Ti�[����t�-���X�|%/I�˲ѹ2k*�����]k����j�����2��5k$G�_Q�W����s[�$�P�~�<7�%;?O�T�P�b�^L�4ssM� �ul�)	?�oX�[q���|���"�^��=3؇�X;U��l{�q� ��d� ����Zؽ���*��疽��gd�$ALh��a���(�n�z"�Źo<�����f�Z3j��أ:��� �4�#C%D�O��={���R��{<��N>G���y�:��VT�U%��|nCM!�ȨX$��1>6B���7�����(Aa��b��o��V��lޚ%=�$C 2F�{�'�������ӕ���,�{d26��d�!�b�\�^Q�W���#[�=[BЊ���lc���e���Bb��~���?ށ,ۢT*��4z\�Gzw�� u��H���'02<�}����3G����a���b�\!G��E�0[�J~���lX�����tLaa����R(�9xx��2�4�B�~׻}���ĝ� )v�qw�ON,� \�EFF*ض���0�c�)n�ahp��S�U&?L~�=�B^���3���$v~h�r����4MQ� }� �T*S��z���|�A<>*�(Q4��Oyρن[(��<�{���R�@/��dsH!i����+{��������7=�!�����=����I?JM�4�#���ӥ���ם���$�Ԑhn*9;+��Ө��2�{%%1���2�f�4��=�ݕ=�kUɿ൛��lC�{�.�C�C��f����eQ�����r�$��Ւ� Z��]J�8�K,����4IN˦>�f�0eg2�4$����0�\���+x��L�����7�j����~���9��L�����@!O1��oy-�\wݾ�֚(N�i8���0N�} "������Z=�%)�e�H[�0�M�C')I������YY{?����g8�Vu�#@G�ɢ0bjjL�����[W-��2��I�0�|.[dr|�C��t:1B� i�v/!����Ϛ�����Vy�\B5m���)d�T�*�qL���Hse-ͫJ���>�i��4�06L�G�g�Q�$;X*��W�P�9?s�ٞ���0��r˝;�]X�T(b� qΞG���u����c�叅�EG�/�q�ڎ�\��g�Ԛ�Q�y��p�}���<����� o羺3���[5U�R*uC��6qFؓS�?��:�n=]g�B���O��y�[�ʗK:�>�!����<���-�?u�q��?ڻH�Ojz�8~������\���>#��hr|��e��I�����Ͽa��m�����4iz�K���0ej ���P���.�����jp����?�����C9��'A�X�-S.X���0x��q��8 X��n�\�E*F�9�|Ɖf�������4�u�c�����������X{:h��X�;7��K?�$�,7�6����������~�(�2-����b�b!G��F)=���qJ�ǖ�)�B�R�?w���	�qx������$'���b>G��]wd~�{�Y��+��˚|�5�e�i����:*u��:�pO~+�;y�0�T*�����w��,q337G��#MR*���Gjs�yǩ��Iy`��E����*RJ! y�Q2��k9��[�bߑ%~��������������j�	{�ghh�n�'IR��"Q��},�mY(��ՌO�&5Ӭ��И�������G�t�}���U�����_V�����3\m'.�5���湱}K)���T6m\ǩg??����[��%$�N�n�����QB��S(����0R��y���K�>��,M�T���ʦ��X����0�h�ۼ�-������WT��u����k�{o����ͯ;筼wb��3x^H�ӡ���{}�>L*Ҷ��{�D$]��4�����z �8�ed�!�6�X)5��B���l�Y�`e��;��`�~���� �Z{E�_U������>u�얳��6:�5ۦT�r?w��T%�bt��1�}?��ݯ���#/�=)�(�N*R���v���2;Z�Џ�Ɋ'��C-U.ژk-;�I��'!%;4L��ذvpE�_U�?w�}O{mƯ��۽SH����p�XǴ�]�$��E�=/�N��o�f�|sΑ����ѓ�:A?�D�"}��W-�

 

Those question marks and stuff does not look valid.

 

When I do the same EXACT thing on image.php with no $_POST or using <form method=post>

 

My data is:

 

?PNG  IHDR_m???S IDATx???y?fU}??Yk???V?[su???6??"AEq??D???I0&7????I?9??7?&j?"??q?2R???~??y?U%??w??3?a??????%O< ???^?p%L?i?+??ª?o??j??Y??<`9?09??"I?^t?f????? '?????r??*??4]??43Z????Z2???3????"?M??x??y???C)?h???J~???hz???qM?89?tl?T,W5~?C%fj?3????X??'V??l?X??$?D??c???R?"?_?m????Rd?l??SK?*^???g???2??ur???FP????H?*g#?Ï0K?T1YBN?a??2-?+tj???????HT^]mC?v?DJ#?PQ?v%?1??9D???F:!r_ ?,???b?L??;6d?OI?l?????Y,??????_?????????*7?ksO0?i?`?v?dr??%9?bt?0Bx!:???"??H??n?h??I??4 ???:.?J?p???/,W&s_S??7*??aP.??T*??~??_????<???8y`o?}???q-?N?C#LA	?BHRD??,B"??8.B??9?A??,?;?]n?LJ?BQ4?0?4?????¾|????%???H??????;w??:??\x???X?/`K1y??JC??G,?9?i?|g[????*g?G? ?B???aID???B??!7a?Iu????.w0??<???2?a????M?????V/???o?711??R?$	k?=???W???^t?E?Ro?<??1,?4?49???????4?pC?AK`?]D3???????@??X??_??G?H??}?nxj?,?-??mi^=V ?w?????n?u?i??y??m??6{?9?l?m?4M?R?q??7MOO?????{???C?? ?>?'Ð??i?Im/???R+`i??P?b?%???X7 ? _??tfN?n?a?b?? ???)?qB/?(?`??XS?z"??(?Z???i|??r??n?i@.?@???m?????>?????>?%??F?$???T?d?y S$tc?G3?U?G:Jd!??D?F:Y??`???;???ÔV??M5}RZqL#?	??A?RT`?n6?-???l??XY)?~????y????RbRJ?4e???7l?p?_??_????6?KT	?D?d0	c?8F?&J?T??\6????? ?9????*?0l?d T?6@#c?M???i????4%kYT???l??sL8VV ?X,?|?5?,?Y??uB???l?P?)?q ????? y?UWun???????M?6??~?? ???#48j???????]?v?yk????Q`l????S??9???m?@?u?Rv?B??m???nG??C/?~?BkH?? ?D /N?ÔN?g??1?p]?/?? Itm????y????UQ???²?Y?,V&??Y?f????????>??O_;55E.?{?|?4? ??c?T?? _??.Y?7x TCE5T,?c?c?2e!?egrT}E;N"i?????x??rGEma;????2?G??G?3S?9\?X??xA??????}??????zx??(Ph?R?4???uC??zw{???h?4Z?????'??_?rgll?????s?8???????R"?????	?4M???p? x? 7\u?y???"L?j???8N??? &2?oq?p?????u"29q???|_G?H?G?A??(???(b?0T?i?IJ???MX?+?TbI.?v?????(?@???t:Z?=m=?f?E?????gv??7M)????q????????????????????E?aDJ?a???c+??XV?iF?v|V??[Y??Y??c??}??CtF3?(??9EwZd?D??i/???t? ?6-??X&X$??M&?y?L?mZÙ'o??m?w[????? L?0?9??;?}?.?????X?????r????????y?uG??J1?m?ER?|????~??W?M????e????????:??N??z??{}??r??X????0???d?p?V??t?kx-??Wt:!K?m?~?m[?&dl??+k9????Uh?A?C?zk??A?O?L?f??a?`+?d??O???[n?^}???????SSSE??y?)?`?1??Q?i?<??C???'??vV???FQ,?_k,???.??=?.??f?k??\ T?1[?2????[???#Z?6i???5???r' ?5S?35a*h???/???^??5	?V??{?&??aa?%???o????Z?B}?Z??j?????????>?????K%:??.????&?????q???n???????08??X?N?????&?:?^?Q??????????"?)??H??z?L??C}?C?]??!P,???^?????????^q??M	a"??*??V?@]??q"?!??B??I???@qht????J??????_?O?????12I????9????j???|>????~??+??r++TN?+ lg???hy??C?m????r??b 9#e?d??[?)r??1???:???5??`??H????4???#7?v?g?c?!P?4?K????Vd?7?^L?Q?D???C?1:L?A??#???:u?(?lY	??'_^v?e?????/??!M??????? x??????? W_}??????y+P??E?2????4+??F?N?6???4?????v?;?e??vv???h1#?B?????]K\?????5????f???A??L??,???0|]????R?P3????j?C?H?@I???-?ö!G??j>?????(???~??????:????????c?_A.?????|?W\q?f^`????v????9?????W?s??????uC?V??8???T??d?az???K?mI%o1?3?26\`b????#t???? ?"??5=?^D?"??A?<???s????l]??K/U?^z??:??v???3?}?????;?d???S*???!??Z????5?\?????????/4?g?????\0???i8K?%????D????!?c	 ?/??]?y??X9?6$7?zp????v?7????*@??FA???f?/??v?+?:???8?<?v?j???r??nH'?3.I?H??L????d]??z??#??????????=??~?M??X?9?H??S??<?????U>q?i?}?????????.??yr??3s?w??<?????}?~?#???????3???????D[?R??;l?1X??F>?????\84?A???y h???\???u#??k&?G?J?3?#5?T??$$A?eJ?9??????q?H??_???$[1?l???w'q??k? #?p???f??>gl?cg????y?kf?7?O???O~??|G?\r??????|?k?J????g??|??9?Tb{??]???y???-????????$Iv?y??-??.??????]?.???q?X??2Y2\G~??8S0#^???A?????Jy?T????????0T?2R?c?.3?s?.Q ^2?Z??????u?R'?????,??Z???????R?ib????5?u??l`????r??|;? ?[O??_]?5?/?")???O%??w?5kGG??O????W???n?q#????? ??T???0???<????[?u??>????fhbÉ3?m??o<???{???RgL?o????^?4?Ri?g??5[?|??f?d??m?aD??2U)?~"hv??l????z??Z?\??Ml&(??*????f?0???{?Vt???CmH??? ??R??9????c!q????Gv?t??_???W?p??i??y3??l??I?ZeOe?????v????o???????????????Y5[(p??9??~???:??????/??yN?coW?}??C?>a?;a??[;k?Zj???5??g!`o56o???b????#?? ????,?{?IJ?????NF$???: ?,1Y)3?s*?p?j?M?? l?L???.?????7Nv??m???%??w??????? ?f?Z?+M???????7?????>?????3?#kw?M|??:?????y?_r?%OZ~,???B ??4c??+k*?sO\;?$a??1??a?b?=5??,?<~?5????????y??J	!,#??,tb??.s?a?}?k?3#???N"V:?>P?|???x?R???h6???,???o?X?6??$i????7m???m?,m??\???_?????3???6????+m?????o?!?????4,?E>6??[?2?:V)??n????\ls???O?mt??I????G/:???X;9??$????&?thG?ËuZ?X???'?+Y????N J????/?????j??uj??%?6??v?9/?RP	????_??-??????6?f???szu????>?????)c?;v??_8l?? E?h??`[?????2??%q?hx1?=?~<?A?????PW?~8?jyWZ???IB???Q??! ?0? R??M???}?pK??????);z=&/Q????N8??D????(bfG??h?{?84I???_k?4?Hi??D"?b?K?6?^?????W ?????[sC?_?yi:6J?$Zc??Q?"	SZAL?5nD^??A????B?$??:"??A??8?z????iB*?z	R????;??i?2?U???ô2? H5I??{1????-m????U.>?8?????Y?5?)?v@??#M?c?2???Abg?,BP?94??i??z,?Z????+?????."?F?F?d)?Rp]????\?C??V(??)?t?C9?????&_?j????o???;????P?6?;.CE?)M??8e????jM?wd??za???S?r??A??l?0M?%<??L??g?????Y?}????|??:?	)??V?3%H??0T,???8????g?}^?????v?3?Z???I??????7???~???M??q???y????Hi???(?d????l?t;??t?R?'?bY?????y???`V(???Z??vL??\t?-??;??$R?X??r??+??1?xa?b=??h?U??b?z??OkM?Qe?x???? ???????t???0CI???'?(	c,N??b$?L???)?t??z???;?V?N???l?{?]iT?fm?a?D-b#?vl:?? ?O1???3?8#?:qV ?J~???Q????[h?Yd$g?(?{2?????B??D	?YT???Nv?6@?WT?U%????/a<?6UZ??H?\??<?ž?>j]?k=??b_s???b?D ?,J?DiH?????v?/????j??!S???????.~?IXU?3?cu?i?FKYv??9??)?M/ ?M(f?=~]????4A??I??@'o?b}?h?A?Jh?Tc?{?Vl?|??Z?/??qP??Cid??? ?H# EDI?6?d?]??4???h\ebj?Fc	#???0ttn?C?mf?z??G?e?E*W.<?'`U?7?s?I	Q?Y???I?2??	?;x}O??}?*??0?IDAT-=?-K'??U??H??Bu???Z????cE?`(ga???#k?F!???E????J?iw??j?C????r??2D?u?T-9f8????S?Q?????j?? ?g>?b?f\JR1??????-Sc?9?k>?fG?v?`???~Bj(R??l:n?s?J})%?f??H )=??^?w??????$1 ????/l_;r???J??tXU?>??nZk??b)??2S?$Dc?(h:?[k???O????4???K?4?2L??d??&???K??????b??U%?P|N?~?e=Hh????[m?????,??m?co?|???????/??8??\r???S!@%q??f?f%=?"?a?r?\?????R?z1t>?J~%?>???$?l?=?>?????????]??;?r?\71Ti?[????t?- ??X?|%/I???2k*?????]k????j?????2??5k$G?_Q?W????s[?$?P?~?<7?%;?O?T?P?b??^L?4ssM? ?ul?)	Ä?oX?[q ??|???"?^??=3??X;U??l{?q? ??d? ????Z????*?????gd?$ALh??a???(?n?z"??o<?????f?Z3j???:???	?4?#C%D?O??={???R??{<??N>G???y?:??VT?U%??|nCM! ?X$??1>6B???7?????(Aa??b??o??V??l?%=?$C 2F?{?'???????????,?{d26??d?!?b?\?^Q?W???#[?=[B?? ?lc???e???Bb??~?????,?T*??4z\?Gzw?? u??H???'02<?}????3G????a???b?\!G??E?0[?J~???lX?????tLaa????R(?9xx??2 4?B?~?}????? )v?qw?ON,? \?EFF*????0?c?)n?ahp??S?U&?L~?=?B^???3???$v~h?r????4MQ? }?  T*S??z???|?A<>*?(Q4??Oy??[(??<?{???R?@/??dsH!i????+{????????7=?!?????=????I?JM?4?#???????????$??hn*9;+?????2?{%%1???2?f?4??=??=?kU????lC?{?.?C?C??f????eQ?????r?$???? Z??]J?8?K,????4IN?>?f?0eg2?4$????0?\???+x??L?????7?j????~???9??L?????@!O1??oy-?\w???(N?i8???0N?} "??????Z=?%)?e?H[?0?M?C')I??????YY{ê????g8?Vu?#@G??0bjjL?????[W-??2??I?0?|.[dr|?C??t:1B? i?v/!??????????Vy?\B5m???)d?T?*?qL???Hse-?J???>?i??4?06L?G?g?Q?$;X*??W?P?9?s?????0??r?;?]X?T(b? q?G???u????c???EG?/?q???\??g???Q?y??p?}???<????? o?3???[5U?R*uC??6qF?S????:?n=]g?B???O??y?[??K:?>?!????<???-??u?q????H?Ojz?8~??????\???>#??hr|??e??I??????a??m?????4iz?K???0ej ???P???.?????jp?????????????C9??'A?X?-S.X???0x??q??8 X??n?\?E*F?9?|?f???????4?u?c???????????X{:h??X?;7??Kš?$?,7?6??????????~?(?2-????b?b!G??F)=???qJ???)?B?R??w???	?qx??????$'???b>G??]wd~?{?Y??+???|?5?e?i????:*u?:?pO~+?;y?0?T*?????w??,q337G??#MR*???Gjs?y???Iy`??E????*RJ! y?Q2??k9??[?b?%~??????????????j?	{?ghh?n?'IR??"Q??},?mY(???O?&5???????????G?t?}???U?????_V?????3\m'.?5????}K)???T6m\?g?????[??%$?N?n?????QB??S(????0R??y???K?>??,M?T??????X????0?h???-??????WT??u????k?{o?????;?wb??3x^H?????{}?>L*???{?D$]??4?????z ?8?ed?!?6?X)5??B???l?Y?`e??;??`?~???? ?Z{E?_U??????>u????6:?5?T?ríw??T%?bt??1?}???????#/?=)?(?N*R???v???2;Z????'??C-U.?k-;?I??'!%;4L???vpE?_U??w?}O{m????SH????p?X??]?$??E?=/?N??o?f?|s???????:A??D?"}??W-?

 

Which is the correct PNG Data, something is messing up with my data through the <form> submit, is it some type of enctype?  Is there a <form parameter that makes it so doesn't do any encoding? all I am using is <form method="post"> something is screwing it up while submitting. hmmmm

 

This forum's bbcode will not display the correct png data obviously, but you know those question marks are not valid, the <form tags are screwing it up..

What kind of data is it you're sending with $_POST? =P

 

The $_POST['data'] is just simple Race/Gender/Class stuff, tiny tinyints, nothing special at all.

 

That png data is coming from $character and it seems like the header might be screwing it up or something?

 

 

FORM DATA:

 

data:test
sword:sword1
boots:
gloves:
helmet:
armor:
charactername:hey
race:0
gender:0
class:0
str:25
dex:25
con:20
int:20
wiz:20
create:Create My Character

 

RESPONSE HEADERS:

HTTP/1.1 200 OK

Date: Tue, 14 Aug 2012 21:23:25 GMT

Server: Apache/2.2.21 (Win64) mod_ssl/2.2.21 OpenSSL/1.0.0f PHP/5.3.9

X-Powered-By: PHP/5.3.9

P3P: CP="CUR ADM"

Expires: Thu, 21 Jul 1977 07:30:00 GMT

Last-Modified: Tue, 14 Aug 2012 21:23:25 GMT

Cache-Control: post-check=0, pre-check=0

Pragma: no-cache

Content-Encoding: gzip

Vary: Accept-Encoding

Keep-Alive: timeout=5, max=100

Connection: Keep-Alive

Transfer-Encoding: chunked

Content-Type: text/html; charset=utf-8

 

Something here is messing up with the imagecreatefrompng function?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.