note 83520 deleted from function.get-included-files by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 11:00:46 +0000 |
| Subject: | note 83520 deleted from function.get-included-files by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197012@lists.php.net to get a copy of this message | ||
Note Submitter: sam at consideropen dot com
----
If you want to avoid the filepaths, just wrap get_included_files() inside preg_replace() to get rid
of path info:
<?php
$filenames = preg_replace("/\/.*\//", "", get_included_files());
?>