[PHP]實用函數(shù)6第2/2頁
更新時間:2007年11月08日 21:55:40 作者:
int getmxrr(string hostname,array mxhosts [,array weight])
//可創(chuàng)建 Session 或恢復(fù)當(dāng)前的 Session
bool session_start(void)
//結(jié)束 Session
bool session_destroy(void)
//獲取或修改當(dāng)前 Session 名
string session_name(string [name])
//獲取或修改當(dāng)前 Session 模塊名
string session_module_name(string [module])
//可取得或重新配置目前存放 Session 的路徑。若無參數(shù) path 則表示只取得目前 Session 的路徑目錄名,加上參數(shù) path 則表示將 Session 存在新的 path 上
string session_save_path(string [path])
//可取得或者重新配置目前存放 Session 的代號。若無參數(shù) id 則表示只取得目前 Session 的代號,加上參數(shù)則表示將 Session 代號設(shè)成新指定的 id
string session_id(string [id])
//從全局變量中增加一個變量到目前的 Session 之中。參數(shù) name 即為欲加入的變量名,成功則返回 true
bool session_register(string name)
//在目前的 Session 之中刪除全局變量中的變量 name
boolean session_unregister(string name)
//檢查目前的 Session 之中是否已有指定的變量注冊
boolean session_is_registered(string name)
//將當(dāng)前的 Session 設(shè)置串行化編碼并返回串行化后的表示方式
string session_encode(void)
//可將 Session 數(shù)據(jù)解碼。參數(shù) data 即為欲解碼數(shù)據(jù),成功則返回 true
bool session_decode(string data)
//設(shè)置用戶級 Session 存儲功能,一般可將 Session 數(shù)據(jù)存儲在本地主機(jī)數(shù)據(jù)庫中
void session_set_save_handler(string open,string close,string read,string write,string destroy,string gc)
//取消 Session 中所有注冊變量的設(shè)置
void session_unset(void)
//首部(header)是Web頁服務(wù)器以HTTP消息傳送HTML文檔到瀏覽器之前所發(fā)出的字符串,在首部與HTML文件之間尚空一行分隔
int header(string string)
//發(fā)送一個Cookie作為HTTP消息首部(header)的一個組成部分,參數(shù) name 表示 Cookie 的名稱;value 表示該 Cookie 的值,該參數(shù)為空字符串則表示取消瀏覽器中該 Cookie 的數(shù)據(jù);expire 表示該 Cookie 的有效時間;path 為該 Cookie 的相關(guān)路徑;domain 表示 Cookie 的網(wǎng)站;secure 則需在 https 的安全傳輸時才有效
int setcookie(string name [,string value[,int expire [,string path [,string domain [,int secure]]]]])
//如果已經(jīng)發(fā)送了首部,則返回 true,否則返回 false
bool headers_sent(void)
//把特殊字符(與號&、雙引號、單引號、小于號和大于號)轉(zhuǎn)化成HTML實體
string htmlspecialchars(string string)
//把 string 中的所有字符轉(zhuǎn)化成 HTML 實體
string htmlentities(string string)
//返回 htmlspecialchars() 和 htmlentities() 使用的內(nèi)部轉(zhuǎn)換表
string get_html_translation_table(int table [,int quote_style])
相關(guān)文章
php中對xml讀取的相關(guān)函數(shù)的介紹一
php中對xml讀取的相關(guān)函數(shù)的介紹整理如下2008-06-06
使用WordPress發(fā)送電子郵件的相關(guān)PHP函數(shù)用法解析
這篇文章主要介紹了使用WordPress發(fā)送電子郵件的相關(guān)PHP函數(shù)用法解析,文中還提到了常見的郵件無法發(fā)送的情況的解決,需要的朋友可以參考下2015-12-12
PHP 將dataurl轉(zhuǎn)成圖片image方法總結(jié)
這篇文章主要介紹了PHP 將dataurl轉(zhuǎn)成圖片image方法的相關(guān)資料,這里提供了兩種方法及實現(xiàn)方式,需要的朋友可以參考下2016-10-10
curl 出現(xiàn)錯誤的調(diào)試方法(必看)
下面小編就為大家?guī)硪黄猚url 出現(xiàn)錯誤的調(diào)試方法(必看)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-02-02

