wget returns html instead of full php
Database management in a single PHP file
Brought to you by:
jakubvrana
Hello,
I just install adminer as I usually do, using wget https://www.adminer.org/latest.php
, then tried to log-in.
My display was broken and it took me a little to understand that wget did fetch the html output of the latest adminer release instead of the php code itself.
Here is the command I used to verify :
wget https://www.adminer.org/latest.php -O- | head
And here is the output I got :
--2019-05-10 18:19:40-- https://www.adminer.org/latest.php Résolution de www.adminer.org (www.adminer.org)… 95.168.218.179, 2a01:28:ca:112::1:907 Connexion à www.adminer.org (www.adminer.org)|95.168.218.179|:443… connecté. requête HTTP transmise, en attente de la réponse… 302 Found Emplacement : static/download/4.7.1/adminer-4.7.1.php [suivant] --2019-05-10 18:19:40-- https://www.adminer.org/static/download/4.7.1/adminer-4.7.1.php Réutilisation de la connexion existante à www.adminer.org:443. requête HTTP transmise, en attente de la réponse… 200 OK Taille : non indiqué [text/html] Sauvegarde en : « STDOUT » - [<=> ] 0 --.-KB/s <!DOCTYPE html> <html lang="en" dir="ltr"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" content="noindex"> <title>Login - Adminer</title> <link rel="stylesheet" type="text/css" href="adminer-4.7.1.php?file=default.css&version=4.7.1"> <script src='adminer-4.7.1.php?file=functions.js&version=4.7.1' nonce="ZTFiNTAwYTc0ZTc0NGYwNjg4NzZmMjE0YmRkY2VmYmE="></script> <link rel="shortcut icon" type="image/x-icon" href="adminer-4.7.1.php?file=favicon.ico&version=4.7.1"> <link rel="apple-touch-icon" href="adminer-4.7.1.php?file=favicon.ico&version=4.7.1">
Thanks, fixed.