PHP: Difference Between Include And Require in PHP

If the file that you want to include is not found then this function to return a PHP warning, which is different to the require function which will return a fatal error.

The require function acts just like the include function except if the file can not be found it will throw a PHP error. As the name suggests this file is required for the application to work correctly which will stop the application continuing, where the include function will just return a warning but will continue with the application.

Artikel terkait:   Random Image Script

Isi Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

This site uses Akismet to reduce spam. Learn how your comment data is processed.