分類依檔案副檔名為依據。
裡面是將 SWF、Txt、CSS 做檔案分類
在將分類好的檔案顯示,並且給予超連結。
每次只要有新東西,都要丟進FTP -> 改Html程式 。都需要兩步驟
我寫好的這個東東,每次更新我只要把檔案丟進FTP裡就好了,不須更動其他東西。
下面是實做出來的畫面:
分類依檔案副檔名為依據。
裡面是將 SWF、Txt、CSS 做檔案分類
在將分類好的檔案顯示,並且給予超連結。
每次只要有新東西,都要丟進FTP -> 改Html程式 。都需要兩步驟
我寫好的這個東東,每次更新我只要把檔案丟進FTP裡就好了,不須更動其他東西。
下面是實做出來的畫面:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On <~要上傳就要開
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir = <~上傳到哪個目錄
; Maximum allowed size for uploaded files.
upload_max_filesize = 1000M <~上傳檔案大小限制
先改php.ini
win用戶改紅色部分,基本上跟設定outlook的內送和外寄信件是一樣的
[mail function]
; For Win32 only.
SMTP = msa.hinet.net
smtp_port = 25
; For Win32 only.
sendmail_from = s9714000@cyut.edu.tw
; For Unix only. You may supply arguments as well (default: “sendmail -t -i").
;sendmail_path =
——————————————–
在來是php裡則是增加以下東西
/* 發送信件給會員 */
$subject=$id."歡迎您的加入"; //$id是使用者 $subject是信件標題
$body="您好:\n //$body 信件內容
您的帳號是$id\n
密碼是$password\n歡迎您的加入";
$from="From:s9714136@cyut.edu.tw"; //$from是寄件者的電子信箱
mail ($email,$subject,$body,$from); //$email是對方電子信箱
<?php
mysql_connect(“localhost","root","123456″);
mysql_select_db(“store");
/* 查詢資料 */
$result=mysql_query(“select * from list");
/* 輸出結果 */
while($row=mysql_fetch_array($result))
{
echo “產品名稱:".$row[1]."<br>";
echo “價格:".$row[2]."<br>";
}
mysql_free_result($result);
?>
<?php
$link=mysql_connect(“localhost","root","123456″);
mysql_select_db(“store");
/* 插入資料 */
$sql="insert list(no,product,price,putdate)
values(’1′,’鍵盤’,’30000′,’2003/7/10′)";
/* 執行SQL指令 */
mysql_query($sql); //呼叫mysql_query()
?>
<?php
$link=mysql_connect(“localhost","root","123456″); //建立連線
mysql_select_db(“store"); //選擇資料庫
/* 建立資料表 */
$sql="create table list
(no int(5) auto_increment,
product varchar(30),
price int(5),
putdate date,
PRIMARY KEY (no))";
/* 執行SQL指令 */
mysql_query($sql); //呼叫mysql_query()執行指令
?>
<?php
mysql_connect(“localhost","root","123456″);
mysql_create_db(“store"); //建立store資料庫
mysql_select_db(“store"); //選擇store資料庫
?>
在安裝appserv時 連線效對改big5即可