cvs: phpdoc-de /reference/apache/functions apache-lookup-uri.xml
| From: | Friedhelm Betz | Date: | Sat, 17 Jan 2004 15:25:43 +0000 |
| Subject: | cvs: phpdoc-de /reference/apache/functions apache-lookup-uri.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-1060@lists.php.net to get a copy of this message | ||
betz Sat Jan 17 10:25:43 2004 EDT
Modified files:
/phpdoc-de/reference/apache/functions apache-lookup-uri.xml
Log:
sync to en
Index: phpdoc-de/reference/apache/functions/apache-lookup-uri.xml
diff -u phpdoc-de/reference/apache/functions/apache-lookup-uri.xml:1.4
phpdoc-de/reference/apache/functions/apache-lookup-uri.xml:1.5
--- phpdoc-de/reference/apache/functions/apache-lookup-uri.xml:1.4 Fri May 31 13:47:05 2002
+++ phpdoc-de/reference/apache/functions/apache-lookup-uri.xml Sat Jan 17 10:25:42 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
-<!-- EN-Revision: 1.2 Maintainer: betz Status: ready -->
+<!-- $Revision: 1.5 $ -->
+<!-- EN-Revision: 1.4 Maintainer: betz Status: ready -->
<refentry id="function.apache-lookup-uri">
<refnamediv>
@@ -46,6 +46,51 @@
<member>request_time</member>
</simplelist>
</para>
+ <para>
+ <example>
+ <title><function>apache_lookup_uri</function> Beispiel</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$info = apache_lookup_uri('index.php?var=value');
+print_r($info);
+
+if (file_exists($info->filename)) {
+ echo 'file exists!';
+}
+?>
+]]>
+ </programlisting>
+ <para>
+ Die Ausgabe des obigen Beispiel sieht so ähnlich aus wie folgt:
+ </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
+)
+file exists!
+]]>
+ </screen>
+ </example>
+ </para>
<note>
<simpara>
<function>apache_lookup_uri</function> funktioniert nur, wenn PHP