If you tried this example and it didn 't output anything, or it prompted for download, or you see the whole file as text, chances are that the server you are on does not have PHP enabled.
C 'est vraiment comme un fichier HTML classique, qui comporte des balises spéciales, capables de réaliser des tâches particulières.