php include vs include_once vs require vs require_once

All work the same way. But require_once is the fastest in linux.

PHP require vs. include vs. require_once vs. include_once Performance Test

Advertisements

Published by

paragasu

Different. In a good way

2 thoughts on “php include vs include_once vs require vs require_once”

  1. It is recommended to use the require() function instead of include(), because scripts should not continue executing if files are missing or misnamed.

    it’s less redundant

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s