Difference between common.inc.php and common.php -


i know difference between using common.inc.php or common.php include files in php.

is semantic or there reason use 1 or other?

using inc.php people indicate file meant included in script , not accessed directly. stated, not affect functionality in way. users can still execute file via web browser.

it's been while since i've seen practice used, it's used in procedural programs. oop programs have file associated each class, name matching of class, such user.php, post.php etc.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -