summaryrefslogtreecommitdiff
path: root/hello-debug.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2021-04-20 21:46:33 +0200
committerpolo <ordipolo@gmx.fr>2021-04-20 21:46:33 +0200
commit87798e5554eb0330cd2de255e5034f0472d410a4 (patch)
treeacd9e26a7d912c7575cb6dd1c7b42cc3e9f52993 /hello-debug.php
downloadmelaine-87798e5554eb0330cd2de255e5034f0472d410a4.zip
mot de passe
Diffstat (limited to 'hello-debug.php')
-rw-r--r--hello-debug.php22
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>