關(guān)于“php密碼查看”的問題,小編就整理了【2】個相關(guān)介紹“php密碼查看”的解答:
PHP加密了怎么解出來?這個應該是gzip壓縮。用個解壓縮的就行。function gzip_decode ($data) {$flags = ord(substr($data, 3,
1));$headerlen = 10;$extralen = 0;$filenamelen = 0;if ($flags & 4) {$extralen = unpack('v' ,substr($data, 10,
2));$extralen = $extralen[1];$headerlen += 2 + $extralen;}if ($flags & 8) // Filename$headerlen = strpos($data, chr(0), $headerlen) + 1;if ($flags & 16) // Comment$headerlen = strpos($data, chr(0), $headerlen) + 1;if ($flags & 2) // CRC at end of file$headerlen += 2;$unpacked = @gzinflate(substr($data, $headerlen));if ($unpacked === FALSE)$unpacked = $data;return $unpacked;}
phpMyAdmin登陸賬戶密碼如何正確配置?首先在根目錄找到config.sample.inc.php復制一份文件名改為config.inc.php(如果已經(jīng)存在 config.inc.php 文件,則直接修改該文件即可)。打開config.inc.php 找到 $cfg['Servers'][$i]['auth_type'],將
$cfg['Servers'][$i]['auth_type'] = 'cookie';
改成
$cfg['Servers'][$i]['auth_type'] = 'config';
然后在下面追加如下代碼:
fg['Servers'][$i]['user'] = 'root'; // 設(shè)置的mysql用戶名$cfg['Servers'][$i]['password'] = '123456'; // 設(shè)置的mysql密碼
取消phpMyAdmin自動登錄
只需把
$cfg['Servers'][$i]['auth_type'] = 'config';
改成
$cfg['Servers'][$i]['auth_type'] = 'cookie';
保存即可。
$cfg['Servers'][$i]['auth_type'] 有三個待選項值,即 cookie、http、config。用的比較多的是 cookie與config。當在正式環(huán)境時,用 cookie,要求用戶必須輸入正確的用戶名與密碼,而在本地測試服務器時,一般用 config,省得session失效后又得輸入用戶名與密碼,以節(jié)省開發(fā)時間。
到此,以上就是小編對于“php密碼查看”的問題就介紹到這了,希望介紹關(guān)于“php密碼查看”的【2】點解答對大家有用。