diff options
Diffstat (limited to 'hello-debug.php')
| -rw-r--r-- | hello-debug.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/hello-debug.php b/hello-debug.php new file mode 100644 index 0000000..62fdc4f --- /dev/null +++ b/hello-debug.php | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | <?php | ||
| 2 | $hello = "hello"; | ||
| 3 | $doc_root = $_SERVER['DOCUMENT_ROOT']; | ||
| 4 | $nom = $_SERVER['SERVER_NAME']; | ||
| 5 | $pwd = getcwd(); | ||
| 6 | $script = $_SERVER['PHP_SELF']; | ||
| 7 | $lang = $_SERVER['HTTP_ACCEPT_LANGUAGE']; | ||
| 8 | ?> | ||
| 9 | <!DOCTYPE html> | ||
| 10 | <html> | ||
| 11 | <head> | ||
| 12 | <title><?= $hello ?></title> | ||
| 13 | </head> | ||
| 14 | <body> | ||
| 15 | <p>Racine selon le serveur: <?= $doc_root ?></p> | ||
| 16 | <p>Nom du serveur: <?= $nom ?></p> | ||
| 17 | <p>Répertoire courant: <?= $pwd ?></p> | ||
| 18 | <p>Chemin du script: <?= $script ?></p> | ||
| 19 | <p>Langue: <?= $lang ?></p> | ||
| 20 | <p><?php echo(var_dump($_SERVER)); ?></p> | ||
| 21 | </body> | ||
| 22 | </html> | ||
