skip to main
|
skip to sidebar
御前帶鍵盤的php部落格
顯示具有
require
標籤的文章。
顯示所有文章
顯示具有
require
標籤的文章。
顯示所有文章
2010年11月1日 星期一
include 和 require
引用方式的不同
require 的使用方法通常使用在PHP程式的前頭,在執行前會將因入的檔案展開至原本的程式,實際上文件的內容是去替換該語句。
include 通常放在流程控制中,在讀到那一行時才去讀取該文件內容。
警告方式的不同
include()會產生一個警告,而require()則導致一個致命的錯誤(出現錯誤,腳本停止執行)
require() :如果文件不存在,會報出一個fatal error.腳本停止執行
較舊的文章
首頁
訂閱:
文章 (Atom)
BloggerAds
標籤
php
(31)
ZendFramework
(16)
jquery
(4)
mysql
(4)
drupal
(3)
css
(2)
session
(2)
sybase
(2)
Aptana
(1)
GAE
(1)
JAVA
(1)
Memcache
(1)
Notepad
(1)
ORM
(1)
PHPDevShell
(1)
SFTP
(1)
YAML
(1)
array
(1)
cache
(1)
cookie
(1)
db
(1)
framework
(1)
google
(1)
hash
(1)
include
(1)
input
(1)
ip
(1)
migrations mysql
(1)
mssql
(1)
mvc
(1)
mysqlnd_uh
(1)
opencv
(1)
plugin
(1)
require
(1)
rewrite
(1)
spyc
(1)
template
(1)
副檔名
(1)
原始碼
(1)
基礎
(1)
抓取
(1)
搜尋
(1)
搜尋引擎
(1)
正規表示式
(1)
程式碼
(1)
網頁
(1)
資源
(1)
高亮度
(1)
網誌存檔
▼
2015
(2)
▼
6月
(1)
編譯php時指定php.ini位置
►
5月
(1)
►
2014
(1)
►
6月
(1)
►
2012
(3)
►
12月
(1)
►
6月
(2)
►
2011
(19)
►
11月
(3)
►
10月
(2)
►
7月
(4)
►
4月
(5)
►
3月
(3)
►
2月
(2)
►
2010
(40)
►
11月
(5)
►
9月
(7)
►
8月
(1)
►
5月
(2)
►
4月
(10)
►
3月
(4)
►
2月
(10)
►
1月
(1)
►
2009
(14)
►
12月
(3)
►
11月
(1)
►
10月
(5)
►
4月
(1)
►
2月
(1)
►
1月
(3)
►
2008
(14)
►
8月
(1)
►
7月
(1)
►
5月
(11)
►
4月
(1)
pagerank
關於我自己
omusico
檢視我的完整簡介
YAHOO站長工具