Monkuar
Members-
Posts
987 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Monkuar
-
Just cast them properly, numbers should be intval and check if the intval number is negative too. strings/text, u need use what ChristianF said. good luck
-
Thank you,
-
User agent stores it like : "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/53" or something, does that WOW64 show the archetype? If so, I could just do a basic if the string has 32 or 64 in it, and assign variables right?
-
http://php.net/manual/en/function.get-browser.php I do not see any arrays here showing the users Architect type, (32 bit or 64bit) how can I achieve this?
-
I recommend you use this bar http://www.toddmotto.com/jbar-plugin-the-jquery-call-to-action-bar for your top , would fit really nice
-
I dont want to waste anyones time, but I found a solution.. function hide(id) { elm = document.getElementById(id) elm.style.display == "none" ? elm.style.display = "block" : elm.style.display = "none" } document.onmousedown = function() { hide('show2') } topic solved.. sorry for me being a comlpete jew edit: wait, no unsolved because they can just click and it will toggle it.. sht.............
-
I am trying to hide the menu if a user has clicked outside of the div (Menu) function pe(a){return document.getElementById(a)} function CngClass(obj) { obj.className = 'userinfo radius2 userinfodrop'; // Shows the menu/etc pe('show').id = 'show2'; //Shows menu var open = true; } document.onclick=function(){ if (open == true){ //Close the div or try to... pe('show2').style.display='none'; } } Okay, so pretty much when they onclick="CngClass" it will make the element id ('show') to show2, which will show the menu. And set a var open to true right? Now if they click anywhere on the document, I want to check if open == true, to hide the div.................... It's pretty stupid how I set the var open = true and it still doesn't even recognize it after, pretty pathetic if you ask me.
-
var username = message.split(/^\/w\s+(\w+)\s+(.*)/)[1]; var newmessage = message.split(/^\/w\s+(\w+)\s+(.*)/)[2]; //Check if the user inputs /w to send a message var commands = message.substring(0,2); switch (commands){ case "/w": alert(username); alert(newmessage); break; } Works great now, topic solved... I swear I need to learn more advanced REGEX, would save my ass so many times. Appreciate your help for this Christian.
-
message is my documentbyid for the input box var oldmessage = message.substring(3); var username = oldmessage.split(/\b/)[0]; var realmessage = message.split(" ", 3)[2]; //Check if the user inputs /w to send a message var commands = message.substring(0,2); switch (commands){ case "/w": alert(username); alert(realmessage); break; } I am making a script where if a user does /w USERNAME message here blah blah.... right now, I am testing it with: "/w Rob hello mayne!" It works as expected, except..... any text that is from the RIGHT of "hello" are not shown. Why? Because I am using this: var realmessage = message.split(" ", 3)[2]; And that only grabs the "hello" I need to grab everything to the right of that too, as that will be the message they will be sending! If anyone has any insight... Please help
-
this has been solved firstword = str.split(/\b/)[1]; lol i am getting so smarter
-
My simple ajax chat script is working nice. It's not long polling, only a short poll of about 5-10 seconds. Nothing really "Good". But I am wanting to make a command where users can send messages to each other by using /w USERNAME hello How would I go about with javascript of extracting the "username" after the /w command? i would need to use some type of split I suppose? Thanks
-
I just figured maybe the logs will take a performance hit.. I guess it just depends how bad I optimize them then eh? Like, if I am farming some mobs, and each time I kill 1 or take a hit, I want it to show "Took damage of "XXX", "You killed merman/etc gained 200XP". Maybe I am thinking little notifications to the user are fine for that instead of actually storing it? Maybe I am getting it a little mixed up, I apologize. I guess making a logs table will be a good idea, I can always just prune old ones after xx amount of time, or let the user delete his logs (that ARE NOT ESSENTIAL) if he/she wants. I think I might have been thinking a little bit to much and over-thought this process, I need to relax and let go.
-
For my RPG game. I have a chatbox that is a notification box and a actual live chat (using only short polling) for now. I was wondering what's the best way to store client side information to display to the user? Like if a user kills a monster It will put "Gained 200 EXP". /etc/etc, Would using cookies for this be a good idea or...? would need to save that data for atleast a day, or 15+hours. I do not want to use mysql for this, there has to be a way storing it clientside?
-
Son of a bitch. It was "charset=utf-8" in the headers, that screwed up my data. Wow............... solved........ kill me now shoot me please
-
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�^tf����� '�����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��������������������EaDJ�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ҋ�l0M�%<��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?
-
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�^tf����� '�����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��������������������EaDJ�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ҋ�l0M�%<��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..
-
(Sorry for double post, edit is not working) I meant base_m.png.
-
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�^tf����� '�����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��������������������EaDJ�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ҋ�l0M�%<��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?
-
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: 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.
-
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?
-
Need help on adding more imagecopy paremeters..
Monkuar replied to Monkuar's topic in PHP Coding Help
WOW did not know you could that // Create image instances $character = imagecreatefrompng("./img/nrpg/base_m.png"); $sword = imagecreatefrompng("./img/nrpg/swords/sword2.png"); $boots = imagecreatefrompng("./img/nrpg/boots/boots1.png"); // Copy imagecopy($character, $sword, -2, 21, 0, 0, 39, 39); imagecopy($character, $boots, 29, 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); This is what I call server side securitY! Haha, now just check if the user has those items bought, and make the image server side. This is epic. OMG awesome, Thanks xyph!! -
right my code now is: $stars = imagecreatefrompng("./img/nrpg/base_m.png"); $gradient = imagecreatefrompng("./img/nrpg/swords/sword2.png"); // Copy imagecopy($stars, $gradient, -2, 21, 0, 0, 39, 39); // Output and free from memory header('Content-Type: image/png'); imagesavealpha($gradient,true); imagesavealpha($stars,true); imagepng($stars); imagedestroy($stars); imagedestroy($gradient); And it shows: MY male character with his sword in the correct position. But what If I want to add a hat/boots/gloves? How would I go about that? Pretty much I need a way to add more imagecopy items over the item
-
Yeah, I am changing my approach now... The hash thing is insanely dumb. I am just trying to find out a way now to build the image server side. I think imagecopy will be the best. I am looking into it as we speak and will post more when I find myself in trouble, Thanks
-
Okay, I made it so each time they click on 1 item it ajax's check (server side) if they own it. If they do, I need help on adding a sword image, onto the existing male sprite. Is there a way using imagepng function where I can place the sword exactly how where I want it, on the male character and then return a full base64string to create it? I have the create functions: $image = imagecreatefromstring(" NEED THE NEW LAYERDED IMAGE BASE64CODE STRING HERE"); imagealphablending($image, false); //Create alpha channel for transparent layer $col=imagecolorallocatealpha($image,255,255,255,127); //Continue to keep layers transparent imagealphablending($image,true); //Insert the text //Keep trnsparent when saving imagesavealpha($image,true); //Save & output if(imagepng($image, "./img/nrpg/charimages/{$pun_user['id']}.png", 1)){ header("Content-Type: image/png"); } imagedestroy($image); echo "<img src=img/nrpg/charimages/{$pun_user['id']}.png>"; which work nice. But am I still in need of a way to grab the sword image and place it exactly by pixel ontop of the male human sprite and generate a base64 code is that possible? That must be how gaia online does it, because each time you click on a image to add to your avatar, I checked it with chrome it actually sends a request. My problem was it didn't send the request until you clicked "saved" and that gave me the vulnerability of anyone submitting any type of base64 DATA over, sure I tried to protect it checking if the user has the items/etc with jsonify array.. but they could still change the post data for the 64base.... So yeah, If you guys could help, this would be great. So in a long run, I need to know how to get 1 image, (sword) ontop of another image, (my male character) by exact position. Really hope someone can chime in here with me.
-
Hello. I usually do not do these, but was wondering if anyone could help me write this script. I have an avatar system, which needs to be validated server side. Everything is working for items, but people can still obviously change the base64 data with something else. I have around 20 helmet images, 20 sword images, 20 boot images/etc. All PNG type. I am looking to find a script that will run through all these images and give me the hash code: FOR BLA BLA, I need help here run $hash = hash( 'crc32', $_POST['data']); output an array or list of every single file and it's crc32 The catch is. I need the script to put each individual image on a different image, until all possibilities have ran out. My problem/thinking is, wouldn't this end up with hundreds of thousands of arrays that would need to be checked with through php to make sure no1 is tampering the base 64 post data? How is this even possible? How to GaiaOnline and other avatar creating sites do this secure protection? All I am trying to do is to make the user not be able to tamperdata the base64 encoding data. And if they do, it needs to be checked against a huge array like this: $_POST['data'] is the base64code coming from the canvas. $hash = hash( 'crc32', $_POST['data']); $validhashes = array("6b448211","39c5beb3", "fb976672", "9ed99f63", "52e898b2", "b7b6f54c", "da10ab35", "df1a8612", LIST GOES ON FOR THOUSANDS.............. ); if (in_array($hash, $validhashes)) { echo "Good image!"; exit; }else{ echo " Bad Image "; exit; } The only way I can think of is, making a script like I explained and gather the hundrends of thousands of crc32 hashes and checking it against it to make sure they are not altering the post data, am I thinking totally wrong here or what? How do the gaiaonline sites do it when they have literally thousands of different items to chose and put on their character? They would have millions of these hashes to check against..... If they did it this way or what? Any idea? Thanks all Or maybe, check the hashes against a range that is set? If the range is higher or lower error out? How would this be possible too? thx