3 月 26, 2019 | 網站程式, 網頁寄存
如果用戶剛安裝了 SSL, 又想整個網站由 HTTP 轉址至 HTTPS , 用戶可以在 .htaccess 加入以下 (未修改前,如果有 .htaccess 這個檔案,記得備份 backup ) RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*)...9 月 7, 2018 | PHP/MySQL 數據庫, 網頁寄存
有些情況下,客人 PHP 網頁程式會透過 PHPMailer 作發送電郵。 基本 PHPMailer 例子設定如下 – (需要更改 Host, Username, Password , and your email content) <?php # # Based on PHPMailer v6.0.5 # ref.: https://github.com/PHPMailer/PHPMailer # require “PHPMailer/src/PHPMailer.php”;...8 月 23, 2014 | 網頁寄存, 網頁製作
根據 Google 近日官方網誌,網站有安裝 SSL certificate 可能對 SEO 有所得益。 根據 Google 網誌 We’ve also seen more and more webmasters adopting HTTPS (also known as HTTP over TLS, or Transport Layer Security), on their website, which is encouraging. For these reasons, over the past few months...5 月 28, 2014 | PHP/MySQL 數據庫, 網頁寄存
在本公司的網頁寄存裡,伺服器是以 suPHP 模式運行 PHP 程式。 若你新裝 PHP 應用程式,記得設定 – 1. PHP 檔案 permission (最高)為 644 2. 文件夾目錄 permission (最高)為 755 若上述檔案或文件夾 permission 設定為 777,PHP 程式不能執行,及出現 – “Internal Server Error” 你可以建立 (e.g.) fixpermission.php 檔案去一次過修改所有 PHP 檔案及文件夾的...