01-09-2012, 06:15 PM

hadahhh...
aku kan tanyak,, malah di balikan...

sama seperti include bre...
terkadang ketemu server yg gk bisa menggunakan fungsi include/include_once, jadi kita gunain require/require_once ..
sama seperti include.. si require jg punya pasangannya yaitu require_once ..
nih penjelasannya ..
Quote:require() is identical to include() except upon failure it will also produce a fatal E_COMPILE_ERROR level error. In other words, it will halt the script whereas include() only emits a warning (E_WARNING) which allows the script to continue.
See the include() documentation for how this works.
perbedaan antara include dan require :
include <-- dia nih akan tetep menjalankan script walau file yg di include gk ada..
require <-- kebalikan dari include, dia tidak akan menjalankan script jika file yg di require kgak ada..
My Mind



