From 6700039154bde37304688931f264cff0b4e1394d Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 16 Jan 2004 20:03:06 +0000 Subject: [PATCH] added example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@148887 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../apache/functions/apache-lookup-uri.xml | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/reference/apache/functions/apache-lookup-uri.xml b/reference/apache/functions/apache-lookup-uri.xml index bbf1eced92..607e8f6f8e 100644 --- a/reference/apache/functions/apache-lookup-uri.xml +++ b/reference/apache/functions/apache-lookup-uri.xml @@ -1,5 +1,5 @@ - + @@ -44,6 +44,50 @@ request_time + + + <function>apache_lookup_uri</function> example + +filename)) + echo 'file exists!'; +?> +]]> + + + The above example will output something similar with: + + + 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! +]]> + + + apache_lookup_uri only works when PHP