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
Post a Comment