• <i id='q8GxQ'><tr id='q8GxQ'><dt id='q8GxQ'><q id='q8GxQ'><span id='q8GxQ'><b id='q8GxQ'><form id='q8GxQ'><ins id='q8GxQ'></ins><ul id='q8GxQ'></ul><sub id='q8GxQ'></sub></form><legend id='q8GxQ'></legend><bdo id='q8GxQ'><pre id='q8GxQ'><center id='q8GxQ'></center></pre></bdo></b><th id='q8GxQ'></th></span></q></dt></tr></i><div id='q8GxQ'><tfoot id='q8GxQ'></tfoot><dl id='q8GxQ'><fieldset id='q8GxQ'></fieldset></dl></div>
  • <small id='q8GxQ'></small><noframes id='q8GxQ'>

    <tfoot id='q8GxQ'></tfoot>

    <legend id='q8GxQ'><style id='q8GxQ'><dir id='q8GxQ'><q id='q8GxQ'></q></dir></style></legend>
      <bdo id='q8GxQ'></bdo><ul id='q8GxQ'></ul>

        如何更改php中的内容类型?

        How to change content type in php?(如何更改php中的内容类型?)
        1. <small id='JONEX'></small><noframes id='JONEX'>

            <tbody id='JONEX'></tbody>
            • <bdo id='JONEX'></bdo><ul id='JONEX'></ul>

              <legend id='JONEX'><style id='JONEX'><dir id='JONEX'><q id='JONEX'></q></dir></style></legend>
            • <i id='JONEX'><tr id='JONEX'><dt id='JONEX'><q id='JONEX'><span id='JONEX'><b id='JONEX'><form id='JONEX'><ins id='JONEX'></ins><ul id='JONEX'></ul><sub id='JONEX'></sub></form><legend id='JONEX'></legend><bdo id='JONEX'><pre id='JONEX'><center id='JONEX'></center></pre></bdo></b><th id='JONEX'></th></span></q></dt></tr></i><div id='JONEX'><tfoot id='JONEX'></tfoot><dl id='JONEX'><fieldset id='JONEX'></fieldset></dl></div>
              <tfoot id='JONEX'></tfoot>

                  本文介绍了如何更改php中的内容类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一张图片,但它没有显示.我检查了图像属性(右键单击并选择属性),我发现类型"是 text/html 而不是 JPEG 图像.这是因为导致我的图像不显示的类型吗?如何更改类型"值?我正在使用 php...

                  I have an image, but it keep doesn't display. I check the image properties (right-click and chose properties), and the I found the "type" is text/html not JPEG image. Is this because the type that cause my images dont show up?? How to change the "Type" value? I am using php...

                  我在一个简单的 html [img] 标签中显示图像...

                  I display the image in a simple html [img] tag...

                  是的,我试过了..如果我包括

                  Yeah, i tried.. If i include the

                  <?php header('Content-Type:image/jpeg'); ?>
                  

                  显示网址,很奇怪吧??

                  It display the URL, very weird huh??

                  我用的是apache,图片是php代码生成的……

                  I am using apache, the image is generated by php code...

                  <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&amp;h=195&amp;w=540&amp;zc=1&amp;q=95" alt="<?php the_title(); ?>
                  

                  推荐答案

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

                  确保在进行任何输出之前调用 header() 函数,否则您将收到标头已发送"错误.

                  Make sure to call the header() function before doing any output or you will get a "Headers already sent" error.

                  这篇关于如何更改php中的内容类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  smtp gmail server php mailer not working(smtp gmail服务器php邮件程序不工作)
                  Email goes in spam when I send it via others SMTP server(当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件)
                  • <bdo id='ZebGB'></bdo><ul id='ZebGB'></ul>
                    <tfoot id='ZebGB'></tfoot>

                    <small id='ZebGB'></small><noframes id='ZebGB'>

                        <tbody id='ZebGB'></tbody>
                      <legend id='ZebGB'><style id='ZebGB'><dir id='ZebGB'><q id='ZebGB'></q></dir></style></legend>
                        1. <i id='ZebGB'><tr id='ZebGB'><dt id='ZebGB'><q id='ZebGB'><span id='ZebGB'><b id='ZebGB'><form id='ZebGB'><ins id='ZebGB'></ins><ul id='ZebGB'></ul><sub id='ZebGB'></sub></form><legend id='ZebGB'></legend><bdo id='ZebGB'><pre id='ZebGB'><center id='ZebGB'></center></pre></bdo></b><th id='ZebGB'></th></span></q></dt></tr></i><div id='ZebGB'><tfoot id='ZebGB'></tfoot><dl id='ZebGB'><fieldset id='ZebGB'></fieldset></dl></div>