How to get all the information about URI (filename) in PHP

1 Answer

0 votes
$uri_info = apache_lookup_uri('index.php');
echo "<pre>";
print_r($uri_info);
echo "</pre>";

/*
run:

stdClass Object
(
    [status] => 200
    [the_request] => GET /workingframe.com/test.php HTTP/1.1
    [method] => GET
    [mtime] => 0
    [clength] => 0
    [chunked] => 0
    [content_type] => text/html
    [handler] => application/x-httpd-php
    [no_cache] => 0
    [no_local_copy] => 1
    [unparsed_uri] => /workingframe.com/index.php
    [uri] => /workingframe.com/index.php
    [filename] => C:/xampp/htdocs/workingframe.com/index.php
    [allowed] => 0
    [sent_bodyct] => 0
    [bytes_sent] => 0
    [request_time] => 1435747772
)

*/

 



answered Jul 1, 2015 by avibootz

Related questions

1 answer 189 views
1 answer 230 views
1 answer 202 views
1 answer 240 views
...