⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.http-send-content-type.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Send Content-Type</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.http-send-content-disposition.html">http_send_content_disposition</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.http-send-data.html">http_send_data</a></div> <div class="up"><a href="ref.http.html">HTTP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.http-send-content-type" class="refentry"> <div class="refnamediv">  <h1 class="refname">http_send_content_type</h1>  <p class="verinfo">(PECL pecl_http:0.10.0-1.5.5)</p><p class="refpurpose"><span class="refname">http_send_content_type</span> &mdash; <span class="dc-title">Send Content-Type</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>http_send_content_type</b></b></span>    ([ <span class="methodparam"><span class="type">string</span> <tt class="parameter">$content_type = &#039;application/x-octetstream&#039;</tt></span>  ] )</div>  <p class="para rdfs-comment">   Send the <i>Content-Type</i> of the sent entity.  </p>  <blockquote><p><b class="note">Note</b>: <span class="simpara">This function should be used in conjunction with   <a href="function.http-send-data.html" class="function">http_send_data()</a>, <a href="function.http-send-file.html" class="function">http_send_file()</a>  and <a href="function.http-send-stream.html" class="function">http_send_stream()</a>.</span></p></blockquote> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">content_type</tt></i></span>     <dd>      <p class="para">       the desired content type  (primary/secondary)      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 errors">  <h3 class="title">Errors/Exceptions</h3>  <p class="para">   Raises an <b><tt>E_WARNING</tt></b> when the <i><tt class="parameter">content_type</tt></i>    doesn&#039;t seem to contain a primary and a secondary part.  </p> </div>   <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.http-send-data.html" class="function" rel="rdfs-seeAlso">http_send_data()</a></li>    <li class="member"><a href="function.http-send-file.html" class="function" rel="rdfs-seeAlso">http_send_file()</a></li>    <li class="member"><a href="function.http-send-stream.html" class="function" rel="rdfs-seeAlso">http_send_stream()</a></li>    <li class="member">the <a href="class.httpresponse.html" class="link"><b class="classname">HttpResponse</b></a> class if you are using PHP 5.1.0and above</li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.http-send-content-disposition.html">http_send_content_disposition</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.http-send-data.html">http_send_data</a></div> <div class="up"><a href="ref.http.html">HTTP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -