php笔记1
php VC9是為IIS定制的
mysqld --install mysql5.5
php heredoc 語法中,結束標記必須頂頭寫,前面不能有空格,否則會報錯
?
PHP 的真正威力源自于它的函數。
?
*file_exists(filename);判斷文件是否存在
*move_uploaded_file(tmpname,destpath);移動文件到目標路徑。
*setcookie(name, value, expire, path, domain) 函數;setcookie() 函數必須位于 <html> 標簽之前。
*session_start() 函數必須位于 <html> 標簽之前
*isset($_SESSION['key'])判斷該session是否已經設置
*unset($_SESSION['key']);失效某session
*session_destroy();徹底終結session
*mail(to,subject,message,headers,parameters)發送郵件的函數,很有用。
*set_error_handler()
?
有兩種過濾器:Validating 和 Sanitizing
?
php常用變量。
$_REQUEST
$_GET
$_POST
$_FILES
$_COOKIE
$_SESSION
轉載于:https://www.cnblogs.com/quincy-qiu/archive/2013/04/15/4014371.html
總結
- 上一篇: 联想m7400pro更换墨粉盒怎么清零_
- 下一篇: space index.php 7-14