Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
perbedaan include() dan include_once() di PHP
#8
Mesum Mesum
hadahhh...
aku kan tanyak,, malah di balikan... Ngakak

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..

Bigsmile
My Mind
Reply


Messages In This Thread
RE: perbedaan include() dan include_once() di PHP - by compLann - 01-09-2012, 06:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)