note 55498 deleted from function.apache-lookup-uri by didou
| From: | didou@php.net | Date: | Mon, 31 Dec 2007 00:29:10 +0000 |
| Subject: | note 55498 deleted from function.apache-lookup-uri by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134571@lists.php.net to get a copy of this message | ||
Note Submitter: trejkaz
----
Apparently on PHP 4.2, this function returns an array instead of an object.
That being the case, the example code above would translate to:
<?php
$info = apache_lookup_uri('index.php?var=value');
print_r($info);
if (file_exists($info['filename'])) {
echo 'file exists!';
}
?>
A means of making this transparent so that the object syntax works, is left as an exercise for the
reader. ;-)