note 29126 deleted from function.strrchr by vincent

From: Date: Sun, 07 Sep 2003 11:42:41 +0000
Subject: note 29126 deleted from function.strrchr by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55566@lists.php.net to get a copy of this message
Note Submitter: ahmed@somantic.net ---- I am not sure if there is a variable of function for this already but if you would like to know the name of your script file (file name) try this: For example; the code inside the file located at: http://www.somantic.net/test/testing.php contains: <?PHP $file_name = substr(strrchr($PHP_SELF, "/"), 1); printf($file_name); ?> The output would be: testing.php

« previous php.notes (#55566) next »