「工作程式」修訂間的差異

出自六年制學程
跳至導覽 跳至搜尋
第3行: 第3行:
 
<pre>&lt;?php
 
<pre>&lt;?php
 
include_once '../constant.php'或'../userConstant.php'; // 載入伺服器參數
 
include_once '../constant.php'或'../userConstant.php'; // 載入伺服器參數
include_once "./theme.php"; // 載入 site 布景,順便會載入 site 常、變數,連資料庫
+
include_once "./theme.php"; // 載入 site 布景,順便會載入 site 常、變數,連資料庫
 
$str=…;
 
$str=…;
 
echo $html1;
 
echo $html1;

於 2021年7月8日 (四) 22:14 的修訂

(一)免登入,未使用資料庫(預設連資料庫,不管工作程式須不須要)

<?php
include_once '../constant.php'或'../userConstant.php';	// 載入伺服器參數
include_once "./theme.php";				// 載入 site 布景,順便會載入 site 常、變數,連資料庫
$str=…;
echo $html1;
echo $str;
echo $html2;
?>