whiteboikyle Posted July 17, 2008 Share Posted July 17, 2008 Okay well i am trying to make a "image" blog able to be viewed here is my code <?php include("header.php"); $AwardCat = $config->query("SELECT * FROM `award_cat`"); while( $AwardRow = mysql_fetch_array($AwardCat) ){ $name = $AwardRow['name']; $ID = $AwardRow['ID']; echo("<div align='center'><b>$name</b><br />"); $AwardCatSearch = $config->query("SELECT * FROM `awards` WHERE `cat` = '$ID'"); while( $AwardText = mysql_fetch_array($AwardCatSearch) ){ $image = $AwardText['image']; $award_name = $AwardText['award_name']; $description = $AwardText['description']; $content = $AwardText['image']; header('Content-type: image/jpg'); echo $content; echo("$award_name<br />$description</div>"); } echo("<br /><br />"); } include("footer.php"); ?> The output is just http://67.190.21.209:6969/phobia/awards.php Link to comment https://forums.phpfreaks.com/topic/115201-solved-blog/ Share on other sites More sharing options...
Xurion Posted July 17, 2008 Share Posted July 17, 2008 This is a server permissions issue, not PHP. Link to comment https://forums.phpfreaks.com/topic/115201-solved-blog/#findComment-592355 Share on other sites More sharing options...
whiteboikyle Posted July 17, 2008 Author Share Posted July 17, 2008 Nonono sorry my misunderstandment the actual link http://67.190.21.209:6969/phobia/awards.php blocks all ips except mine for security reason.. but thats not the issue i was saying that on that page all it does is echo that link http://67.190.21.209:6969/phobia/awards.php Link to comment https://forums.phpfreaks.com/topic/115201-solved-blog/#findComment-592381 Share on other sites More sharing options...
whiteboikyle Posted July 17, 2008 Author Share Posted July 17, 2008 if i take off the header(); it displays this GIF89a�H�������������jjj&("$14+-$py%r{%qz&s|$kt*u~$dl!Y_$]d/y�!SY6}�=A#MR1jqBF9u|C��$GKJ��Q��;ejg��9SV(8:#$#,-=��8;*,[�� 1HJv��9NPJqsCWXT{|`��i��������V��T��P��G``KeeAJJ!!dqq���=CC^dd���jpp���������KNN��������Դ���������� 譲�������rtt���Z[[�����������������¬�����������Rkj���������w��gxw��CPO������ 311CAA$###"""!!! *)))((('''&&&%%%$$3221000///...---,,,+++**ljj?>>>===<<<;;;:::99988877766655544433TSSSRRRQQPOOLKKKJJHGGFEEDCCCBBA@@@??vuupookjjjiihgggfffeedcccbbbaaa```__^]]\[[[ZZZYYXWWVUU�����ٸ����������������������������������������������������������������������ǿ�����������������������������|||zzzwwwtttrrrmmmiiiddd___\\\YYYWWWVVVTTTQQQNNNMMMLLLIIIHHHGGGDDD���!�����,�����H����� H���U�������F���?�Q��lY2d �-s&m�T����E"ć_(�Š͛8s��ɳ�ϟ@� J��ѣH�*]Jt�ӧP����aąW<���5eU%�+�4n��没B�W�I�K��ݻx���˷�߿� L���È�Y̸��U/��t`K�Ś�-;9�C�b����[���~q̺��װc˞M���۸s��ͻ�����=�v��W�*�6k�jb�F�6��j������`����O�����ӫ/_\6+�O`&o11e.�*�/9z|��Ȳ�(���_U[���6��F��Th��R��2�>���[��GY1�'�6l���ED�4�h�8��<���@)�Di�H&�$��XH2mQ��T� ��y6�2�T�ŗ-�ቓI��:#�gWͲ�p�)�t�i���Q�"�L� *�bO=�j��r *�LbI&�@�� x̡?�����t��y<�Z� -3J?�H��a���$��v|20�\��[� L?�p�r#ʬ�&���6���F+��Vk��f��ղ�*�J=��k�覫.=� &�$�G>m�����.k�geB�G?�`�2^(�,���*��1+"ߌZ�s�#�� ��w��� �,��$��|�AH#�p�I%�� �=�R��欮=�0�o�A���m�,�7M�lA�wψs)�r��M���1�X�E=F��KtO/� ?�t�F����p�-��t�m��x����|���߀�7��F�ܑ� � #�dB ���;��g�y�XIA�=���N��M�4�gӝBʌS��p剸3%���(�Y���B�����̳Q� !��� p�$���ܓ��t/��-�p� 㧯���ފB��/����o���O>��H$�*�a�Q��L�H�J����7 ���o��C�r�t���F�&ʈ�`�$���nlpZg�rE�z'`��C8�������� l(�X��P\�$��*Z�X��>�@8B���ǘ�{8�⛠���4#np�" A��i#�8S��,Cvl�Ë�Ðd8� -�O|�Q?x |�S�@�0�~!��$��0�lX6��,����L�*W�ʓy��0 � D��{؇.w�(�Q!�h�>�a�pc��S�� -lC��|�:*D�78��f�a�aUCʱ�r���(ѹ<�`�<�\`����@�L�CͨF5:�E�C�h�HG*���m���2f�^��Q�c5�p�7��mp�*��=.c"�1H�m��C͊D���:�"��?��P� ��V����n�#ݧ p����hM+X ����p��\�J�t��HE<����zjHo����!Uh�q��d�B��PfU���]�!�p�BK���r"u�I�,`d�U�՟f��0��J5�u}�AW�j��֕��ͭnw��ނu�Ы_�+�B\֩p�r���oXĘB� 媔,Y��r�0x|!Ԉ�1�lx�|خ�QM�`C���UX�� 7�ͅ�z��_7����E��X��=���+[�`����'�]�:��ΰ�7��{��w`)���T܁�Ї��26���Gڲr{��+ Њ��j$d�Ū�8,�bD8�iZP�*��}(bC��+VL�*[Y���`���>�끠<�r���, f2�/(��e��x�?����Z�G���h ��{�>�7�A�c���Zҁ^17�QiXyḆX��=dZ�ḒDHmj}��TV�9���*�hD�S-�m�������M�b[�oD*D��f;;��r�W,�6��ȅ�&s�[��� T� o�p�{$�*Vl�FD�ƨ� }��� i������T�� r�C@����2���9��'�@F�x@�^�v����Y����^p X` �r�APpZ���2f�g@��^�X���NW��sTȯ�l�_�Z�؈u�x����A��p�g�1�c[��žC���{��]���u��N�(!�7����)$�Ϋx��������#`@�R ߢ 8�� �6����co���P�[���k3y��/8��$����(0`~���:�X��� �H��(`�D�y�f���� n��^���5@|��@p��/�Og,� )���z�g�(F#2�a C��B�1�B� ���^�� ��W0��v��;�� ��v��X�P�W�x����P�� �"��p �� �`h~sp ��0���y`y��o�c21 n�����n� �B�0 ��P �� ���0BU���v� , A�c�� op�f"��n{��WU~���y `��z��y4`|�7��e�gy�7|vh{��O��y�@ڇy�4~q�ypU)`y&�=��v)��p��~�@��'� �`~�0��jS� ��P��'СW���� !f�������x���� x �o`����4��8Hds�� �@��q�����L QY`�������p_ a���y�H� �0Qr}��R"S� � �Z ��@�C��0�� �� ����� ��(p���;$��ɑ��R�"�W�����U � Y�����-�P���"���Q�x%Ѐ� ) B��!�� ��&�W� ?А����p���E9�dY�fِ{` ɸ�l) �� rp���p��p 9�q�E#�4�ۤ気͵T�����e��������P<���_ �0�l4%�s�0�c�0��NP C{#t��U�/���01��i�}�;p��|�r=������C�e��i�� йlK�C�C�� �|��Kٹ� ��k0��KS�H�+�vW�0�����x�搻S»���R<�w� �@3X��Z��Y\���{s���kg�0W�1U0�0*Ős�e��0s0 cHx��]���0�*��}Y }��Ex�:Uȷ�\�0VpXZ�ǘ�ɘ츘\�����@�ɦ�ǡ��c�ǃ[ʧ��2�{���ɜ�ǭ�ʙ��} |�����`s��}��W� �\�ƜɈ�AW0��</r �,��˺k̽;�������z {��|����l�}��` ���<��< ��� ��͜ƪBBK7,Հ�x������ӠɅ`�� � �ؠA�� ��ԀǕˀ�Rw�s�?&�ͷ��� ���P��Ǥ��s�|0=��$���%`������7�̃�����O=�� pU���0%����1 ���͛a�}����۬���d]�fP�Lϣ��|� ���x�Q�w�O� wp�����~�+�p }}�}���^���U` 3�Y��} �a}]�� wP��wpdJ��}ڈ�� �����ڲm������d��}�1�I�� \���}��ʻ��$�e(p���$��w��o�ږ��܇�Ɍ���}�����Q=Ĉ�ջ���ݻ������=߈m �p��}�m-�}� ���p ձ�{� ���� v` 2� v`�����^� GU� N ��ZP�� ~�U�vp 2��`�� >��3�� ~�:�4�2��%@�M�%pU���]%� n�^9��J��,��^VW�0�@=V^�2��W��ܽ � gn� �ˠ v�� �g.,�P��AWnW��� o^�~舞�J������n z��|�>�y'%�z��z�� �{�{p;WP��ꬮ��YBh "�^���`XW` zp �|�. �\�P��굍��p��2�� ��Nw�>Ӭn� I�z@sW*��Wz����� ��#�C(��e���l�z�'0�� ���Kv���_�������������;%�������� ��������"?�"�� �jaAQ yP�U�y���1� A 1��:��Pwd� ;��^�Q�Y���41 A?�1?�S������ �TO�:����=N�4�C��-�C[��V��]�T?� �;O pT����m� �9o�j�{���� Aߞ�T;��@������9��臟��?�_�?� �������p�?Y(��U� \�� \w�Kv G(� �_��\'jU�1x�a�x�P�̀����ۊ��W�_���Z�u#�W`7}��P�\#p�� �u+���uܯ��G�@0��a �4P���%�xx�`������F�%W (��b$.p��[������ZL���-��5c� �����o(��r��S�U�^�Z��J]�~�k�Q�؝E���m-�4�ˠ_�<���[�>���M�=�� V�l�Ki���,h1F}�� ��+5]�3�wq^d�?~��t� �p�� llpuՎ1�v`�����%,�`���~,�`m>����> �;�{���p?L��M�bF�j��1{��6����� =D0��vI�A��A^Q����k�p�>�X��b?i��"���+�b(A��������c�麧�hZ���G t���x`��3� $h �*0ұ"OsJ)10�� ��5&��4 Z۲��\�m��lR�(x�@$'@�N��.��� `�B��?��>��ϰ��[ @����n,�4���HEO?5TQG%��M��4A�/�s�0f4X�E.Nf&�$W_6W���&Xcs�& �s��dD���ςG���c��[o�7\q�%�\s�E7]u�%�zr�7^y祷^{+��nW�X���=u�h��L�� ���a�����"b�^E.p�D1��AX�(glF���Wf�e�_�9f�g��f�o�9g�w��Qp�:h��&�h���$�]^�>� ���"Ɣ`2�0F�I:d��&�li).;m�����r����7�qɦ�V�Q�o��z 駧�z��>{��]]2?��q�E�L��>������F�oj��G1�o4�?�H$D��K" H��$D!�a�Lm˟��@�uG �0�V�"aE���p'�_�T�B�P�(�a�WB����C!��C���(!�G8��XD�DOx�O�D�8E*R�G�A��T�6ȁ�8FN�BX����a�эo�#�� O,��`�# B��a G8H�А&L�!��T�B��d$oa4J�HEAHNvғ"\�ZE����V���������A�B 1�Yq�����t���\���A�a&��]P���A*��2�&4�9Mj2�+��!�!�Jd��G*2U,B �i�d��b�Ըz*a G��;�O*α�Kģ#�>�1�� 3��HDx�����!II~"��hF5�ыb��H�BE*�P�h~�z�I��4RN��D��\K �Җ�@�bv�@�*(��_�X*@8c1�1E5�M�6���T� c��VU�?$�؈$��S�DX�:V��U .Y���j�AZ�:W�n��PB7L�V*D� N�B];X�V�t�cZPD��Q�l���y�T����:4��G�"��mhQR ��C�_)�wԧ ���K5~D�.�c� ���b|������]�NEn S�B�0�υ���Cmr��F�j�� �j»�ox��� �c`��1���n��x�� L@�(�_��b�=QF4b�~�fV��%�����n&��e.w��b���A3��\N̰eР.�v�e/�� L���, &h��_�F�� xd� P�r��. z� ��P�U���\��&���E4B�}����dC�����7�[��է�Ĩe=�$��i�;�(Ki�ӚR.���9�qg`�Ŵ�*ϱ���NFD��b D�#`����mnw���w��M](�4SV"�� .�c���w��M��;6@�r�o"A�A �@�1�`q�m %�C��6Ż?1 y*A S��8��wk� FP�1Q$:�JpB�rwoY�~�":��Hز����!�`�Z8\ܔ�y-�>t],�GGz���\��âw����w��l� o��ae7�/1x���߁ v@�2��:�� �5�O�0�Y��'��З���@#�1xSx�Xx�ൡ�#|c��X�T>A�/p� �0��ߝ��x�~�`�����-nq ����>�y��w��ͷu*G)b�H��O�M_���9�_�5D)x�RP���u�$��>�Ӻ"B"Ep"�b�Lx��+=!�3 ���K@�Ё�#H�K�2���3+�s�0�@�ˆ)���S�'��ػ�&pr �lXZ��*�+hA�k9�9E 0�K �3@r��\�Z����P����&l�-����5Sb�Y��11�j��c��%d��X�s�N0B�f��f�HX?H��Ђ��A$�B4�CD�DT�EdDs;�#ZE�*,�@LB�;2�$P�����p �!�5��=�CE����K(�e0�����*x{�=�0�#�W$B#��30Z>F\�H��+�HP�F�P�i�FLB�k��l\���c��A��3������XԵf��Y@�V�Bhd�g�9 2��iG8�~���Ȁȁ$Ȃ�ǽ#"�J7��K����Ȉ�ȉ���!���C���xH1p���� ɒ,I��H�tIVXA���'x���Rx�V���Z�['��-�ɡ��K��0�ˣ�:�ȑ�����HBpF�ʬ��4tʮ�J��F�*��Sj�Q���.�K���G��X��X���Z"�V��cP.H�$��4��D��T��d��$��*����D������3���2H�{X� �DI��ā��p�)��qXA̤�'� �����s�'��'�߄$����4�Lд�G(>r��d�y����NYG������ϰ$1^��C1L�2 a��s(�hx�Ux1�\�x(� k�����FX�x����%�5�E�U���ʅ<�� J�� ���PJ0� ����@ ́��=�-PZ@Q��/h�ep Bz��qX�oh�mѯ(JL(>$�#��#MPLȅtP�%MY���3�(���)�R�\���F��^C%�ɵ��H�-��H�#G�.͋d�#H�-H�c8�e��<��=��>��?�@T�ξ�DJ�Ю��I`�Fu�Gu�p��p�O��F��@H�TH%`R��IH�eЂIhQ�T/��'`T $UUu�*(�[-� 튢4�NRG���?Mu`R&��zx�ae�fu�a �1K�4�w2,%�o�H����HXSo�H�FZ-g( P�C̈Ox�w��xe�BU�Ce�D��E�UO���ȁ�sT@IhT4X�{�T4��-U.�]�Tq��Ym%hH=�)�F�$��I�+0�Ԏ��}}T]��}9_%0O�Ny5 U��X�ٚ�YY��E�ٝ��>�V4��/�:�c�/m�px�.�G�ӂN�:s�Fox\�����ڭ�ڮ�گ۰۱%[�VHd@N<���#Pk ���n��#0���e\&p.���-�o���m� �U椣�uٲ�L`���XH�]��`u�������8�K)�3���Ҵ����a��kA�+J82< �g`�a��t�p�������������%��%�#Z�I�@�u�I�T������00��Կ�_5�8�4����'����M&���m�#�I�S#( .`��#�m-p��I(����ŨI@]�Ԅ�$��4�_F��X������Y�LR���a� �5�CO�D)�T-j �oh�A��)�v@��DO��E(�jh�-��.��/�0�1&�26�1��EH��܄��WF}�T�9��:��;� ּㅽc?@�D�>&d?h/�8�l�a(d0�(�d/�?h-�cn0�I�c0����. �B�9�_U`T�0aVc�<�2�]x�X��Y��Z�a�m�\��].�fS㑺�,��#^�\-bh� c�^8]s�-`���i�^��l�f^F"5�D�Z�Jx���r6�sF�tV�u.�R>�=��D�UV�mn����|��YxT�:��h.�k�i%����s .�Ǽ(�t��x�e��zp�"n�-X���.�ʒ6�F�V�f�v�n���lc ��_:F����������&�6c�5�IH�K���i5ƣ�N�M�X�笶x8�Ja��k�,�.b�Ҡ K�y�:`�k3-�����i�q �[���&�R�SK���&��6��F��V��flŎi&R_L`[�U9��>����������������&��6m��iRaJP�#������>lO�(X@������mt�w��S��M�U�&��6n�.ka^�G��K,�/��d 0��d�O�.͵c��M0*�QK����6��>o$D��f��v����''B�ɮl9��̾�����������'�7�G���Ԇ_�ga�:Z��F� ��_"L��[�����qtxZ�^��{PK����w���nn���j�V�Ȃ:�ָ.-I�O���..\0)�V2}�$W��%g�&w�'��(��)�r��Sx�[xW��.��/��WH[ЅwR0?`j F�r&�e��o�#��E(׳�c�E`�l��d��OP^���g�Fw�G��H��I��J��K��L��M��N�tO�{\Ht��SGuW@�X��Z��\`^�x��Q�S8�T��KXq ��I�q�f�!�kM�\�OH��εb�O���$M`�Dt�˂al�m��n��o�p�q'�r7�sG�tW�ug�vw�w��p�?��P`��E�V��}��~��o�Y�uX]px��L��r�s�&Z��kil�f�������O�b6k�Ђ�7�G�W�g�w�p�L�?(y�]��W������zIpY�ݗo����x2<�� o�W�V}�vx1���N�;?�k����'�7�G�W�g�w�����U�z�P�v`5Z�/|X��YP\`�O��4n�W����r�+Z$��M���2$�l�.�k�bO� җ��g��w�ׇ�ؗ�٧�ڗ{���+��vc��mȄa��ш]�/�ѯ�j�?b�����������������~7 ���5�,���J�Zw�*���M��i�Oc`�²���������������M,h� 2l��!Ĉ':`-���dԸ��ǏEr��dF�!\a5i�ɘ#1j;U�ئjO��h�ŠB�-j�(ҤJ�2m���ȍ*g���T�&��Lw�� �J�:^���S�v���q�;Mr�ҭk�.z�����/��.l�0�Ċ+0�$��dۮ,iu�Ԯ]�)�ٖ%��m��9@��W�n��5�زgӮm�6�ܺw����7���; Link to comment https://forums.phpfreaks.com/topic/115201-solved-blog/#findComment-592749 Share on other sites More sharing options...
whiteboikyle Posted July 17, 2008 Author Share Posted July 17, 2008 i added the header to the very top of the page.. now its displaying this as an error The image “http://67.190.21.209:6969/phobia/awards.php” cannot be displayed, because it contains errors. Link to comment https://forums.phpfreaks.com/topic/115201-solved-blog/#findComment-592842 Share on other sites More sharing options...
MasterACE14 Posted July 18, 2008 Share Posted July 18, 2008 add error_reporting(E_ALL); to the very top. see if that sheds some light on the problem. EDIT: You haven't created the image ?? Link to comment https://forums.phpfreaks.com/topic/115201-solved-blog/#findComment-592993 Share on other sites More sharing options...
whiteboikyle Posted July 18, 2008 Author Share Posted July 18, 2008 yeah i found that out after thinking.. lol i was like wait.. i gotta actually create the image.. i cant just echo it out from the blog on a informational page.. xD So this is solved Link to comment https://forums.phpfreaks.com/topic/115201-solved-blog/#findComment-593127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.