看板
[ PHP ]
討論串[請益] php 發生 隱碼問題
共 10 篇文章
內容預覽:
這是沒用的. http://www.php.net/manual/en/function.get-magic-quotes-gpc.php. Keep in mind that the setting magic_quotes_gpc will not work at runtime. 建議是在連資
(還有151個字)
內容預覽:
所以寫的時候要這樣比較保險...我之前也是都全部無腦addslashes... if (get_magic_quotes_gpc()) {. $xxx = $_POST['xxx'];. } else {. $xxx = addslashes($_POST['xxx']);. }. 或是乾脆檔案前面
(還有143個字)
內容預覽:
那如果已經開啟magic_quotes_gpc,. 然後又對 get、post、cookie 的資料做 addslashes,會不會變成這樣:. \ -> \\ -> \\\\. 之前我都是用 php.ini.recommand 預設的關閉,. 然後程式中一個一個用 addslashes,. 如果現
(還有39個字)