Salve a tutti e buon anno!!(e il mio primo messaggio del 2005!!)
Volevo sapere se esiste una funzione che mi restituisce il nome del file php che sta eseguendo.
Più o meno come $_SERVER['REQUEST_URI'] che restituisce la pagina.
grazie
Salve a tutti e buon anno!!(e il mio primo messaggio del 2005!!)
Volevo sapere se esiste una funzione che mi restituisce il nome del file php che sta eseguendo.
Più o meno come $_SERVER['REQUEST_URI'] che restituisce la pagina.
grazie
dalla pagina Predefined variables del manuale di php:
in breve la variabile che cerchi dovrebbe essere $_SERVER[PHP_SELF]'PHP_SELF'
The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar would be /test.php/foo.bar. The __FILE__ constant contains the full path and filename of the current (i.e. included) file.
If PHP is running as a command-line processor, this variable is not available.
Ciao
_And