Re: trying to get a list of functions used in a php script
| From: | Rasmus Lerdorf | Date: | Mon, 01 Oct 2001 19:15:57 +0000 |
| Subject: | Re: trying to get a list of functions used in a php script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69476@lists.php.net to get a copy of this message | ||
> I am trying to find a way to scan a php script and list all of the functions
> used in that script. Does anyone know if there is anything out there. (In
> Perl or PHP) I know that Perl has the C::scan module to do this with C code,
> but I have not seen anything for PHP. I am working on a secure
> implementation of PHP that will only allow certain functions to be used by
> end users. (But I still want to have full functionality for other scripts,
> so disable_function is out of the question)
But you can use disable_functions in your httpd.conf file and only disable
fnuctions in certain directories or virtual hosts on your server.
And no, I don't know of anything that gets you such a list of used
functions.
-Rasmus