跳到主要內容

發表文章

目前顯示的是 2024的文章

CodeIgniter + dompdf + 中文

CodeIgniter 使用 dompdf ,並且注意中文亂碼問題 專案 dompdf      https://github.com/dompdf/dompdf  安裝      使用composer 安裝 dompdf 使用方法      參考專案網站 中文解決      https://blog.csdn.net/sdutphp/article/details/125570313

如何檢查網站支援的TLS版本

如何檢查網站支援的TLS版本 1. 使用 https://www.ssllabs.com/ssltest/ 檢查,其中 Protocols 就可以看到 2. 使用 nmap 指令  namp -p 443 --script ssl-enum-ciphers 192.168.7.35 參考資料 https://blog.darkthread.net/blog/rdp-ssl-cipher-vulnerability/ https://www.ssllabs.com/ssltest/

php 中使用 ldap_mod_replace 更新 LDAP 資料

 今天試著透過 ldap_mod_replace 更新 LDAP 中的資料 <?php         $info [ 'mail' ] = ( empty ( $email )) ? array ( "" ) : array ( $email );         $info [ 'telephonenumber' ] = ( empty ( $line_token )) ? array () : array ( $line_token );         if ( ldap_mod_replace ( $ldap_conn , $rdn , $info )) ?> 發現 mail  欄位跟 telephonenumber 欄位對於空白資料給法不一樣,如上