Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Funzione che restituisce la pagina

    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

  2. #2
    dalla pagina Predefined variables del manuale di php:

    '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.
    in breve la variabile che cerchi dovrebbe essere $_SERVER[PHP_SELF]

    Ciao
    _And

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.