cvs: phpdoc-hu /reference/apache/functions apache-lookup-uri.xml
| From: | Cece) Szabolcs | Date: | Sun, 09 May 2004 11:45:51 +0000 |
| Subject: | cvs: phpdoc-hu /reference/apache/functions apache-lookup-uri.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-633@lists.php.net to get a copy of this message | ||
cece Sun May 9 07:45:51 2004 EDT
Modified files:
/phpdoc-hu/reference/apache/functions apache-lookup-uri.xml
Log:
sync with EN revision
http://cvs.php.net/diff.php/phpdoc-hu/reference/apache/functions/apache-lookup-uri.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/apache/functions/apache-lookup-uri.xml
diff -u phpdoc-hu/reference/apache/functions/apache-lookup-uri.xml:1.2
phpdoc-hu/reference/apache/functions/apache-lookup-uri.xml:1.3
--- phpdoc-hu/reference/apache/functions/apache-lookup-uri.xml:1.2 Wed Apr 17 02:57:46 2002
+++ phpdoc-hu/reference/apache/functions/apache-lookup-uri.xml Sun May 9 07:45:51 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/apache.xml, last change in rev 1.1 -->
<!-- last change to 'apache-lookup-uri' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.2 Maintainer: goba Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: goba Status: ready -->
<!-- OLD-Revision: 1.24/EN.1.2 -->
<refentry id="function.apache-lookup-uri">
<refnamediv>
@@ -45,6 +45,51 @@
<member>request_time</member>
</simplelist>
</para>
+ <para>
+ <example>
+ <title><function>apache_lookup_uri</function> példa</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$info = apache_lookup_uri('index.php?var=value');
+print_r($info);
+
+if (file_exists($info->filename)) {
+ echo 'A fájl létezik!';
+}
+?>
+]]>
+ </programlisting>
+ <para>
+ A fenti példa az alábbi kimenetet hozza létre:
+ </para>
+ <screen>
+<![CDATA[
+stdClass Object
+(
+ [status] => 200
+ [the_request] => GET /dir/file.php HTTP/1.1
+ [method] => GET
+ [mtime] => 0
+ [clength] => 0
+ [chunked] => 0
+ [content_type] => application/x-httpd-php
+ [no_cache] => 0
+ [no_local_copy] => 1
+ [unparsed_uri] => /dir/index.php?var=value
+ [uri] => /dir/index.php
+ [filename] => /home/htdocs/dir/index.php
+ [args] => var=value
+ [allowed] => 0
+ [sent_bodyct] => 0
+ [bytes_sent] => 0
+ [request_time] => 1074282764
+)
+A fájl létezik!
+]]>
+ </screen>
+ </example>
+ </para>
<note>
<simpara>
Az <function>apache_lookup_uri</function> csak akkor mûködik,