cvs: phpdoc-fa /reference/apache/functions apache-request-headers.xml

From: Date: Mon, 08 Dec 2008 20:43:07 +0000
Subject: cvs: phpdoc-fa /reference/apache/functions apache-request-headers.xml
Groups: php.doc.fa 
Request: Send a blank email to doc-fa+get-66@lists.php.net to get a copy of this message
psalehpoor Mon Dec 8 20:43:07 2008 UTC Added files: /phpdoc-fa/reference/apache/functions apache-request-headers.xml Log: translated tp persian http://cvs.php.net/viewvc.cgi/phpdoc-fa/reference/apache/functions/apache-request-headers.xml?view=markup&rev=1.1 Index: phpdoc-fa/reference/apache/functions/apache-request-headers.xml +++ phpdoc-fa/reference/apache/functions/apache-request-headers.xml <?xml version="1.0" encoding="utf-8"?> <!-- EN-Revision: 1.11 Maintainer: pedram Status: ready --> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/apache.xml, last change in rev 1.2 --> <refentry xml:id="function.apache-request-headers" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>apache_request_headers</refname> <refpurpose>دریافت تمام سرآیندهای درخواست HTTP</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>array</type><methodname>apache_request_headers</methodname> <void/> </methodsynopsis> <para> تمام درخواست‌های HTTP را از درخواست فعلی دریافت می‌کند. </para> &apache.req.module; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> یک آرایه شرکت‌پذیر از تمام سرایندهای HTTP در درخواست فعلی یا مقدار &false; در صورت شکست. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>مثال <function>apache_request_headers</function></title> <programlisting role="php"> <![CDATA[ <?php $headers = apache_request_headers(); foreach ($headers as $header => $value) { echo "$header: $value <br />\n"; } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 Host: www.example.com Connection: Keep-Alive ]]> </screen> </example> </para> </refsect1> <refsect1 role="notes"> &reftitle.notes; <note> <para> پیش از PHP 4.3.0, <function>apache_request_headers</function> به نام <function>getallheaders</function> بود. پس از PHP 4.3.0, <function>getallheaders</function> یک نام جایگزین برای <function>apache_request_headers</function> است. </para> </note> <note> <para> شما همچنین می‌توانید مقدار متغیرهای معمول CGI را از محیط بخوانید البته امکان این امر به استفاده از PHP بر ماجول آپاچی بستگی دارد. از <function>phpinfo</function> برای نمایش فهرست تمام <link linkend="language.variables.predefined">متغیرهای محیط</link> موجود استفاده کنید. </para> </note> &note.apache.nsapi-module; </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>apache_response_headers</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.fa (#66) next »