Current php-file in extension

php.internals

Sam Baum

23 years ago
Hi there, how can i get the current php-file, not the filename in PHP_SELF, that was requested, but that file that actually has the written code that called the PHP_FUNCTION of my extension. Background is, that i syslog mail(), so i can track down misuse on my server. bg Sam

Sam Baum

23 years ago
Hi, am Wednesday 16 July 2003 21:55 schrieb Sam Baum:
> how can i get the current php-file, not the filename in PHP_SELF, that was > requested, but that file that actually has the written code that called > the PHP_FUNCTION of my extension.
got it myself, its zend_get_executed_filename(TSRMLS_C), if any other newbie should ever search for that. bg Sam