I am wondering why we choose some file extentions inc.php. why not just php?
also could you please explain what is this code doing:
Code: Select all
$f = @fopen("./cfg/connect.inc.php","w");Moderator: General Moderators
Code: Select all
$f = @fopen("./cfg/connect.inc.php","w");The .inc bit tells you more about what the file is. It's a file that's meant to be included rather than a complete script. I use .inc.php, and .class.php, .image.php, etc.m2babaey wrote:I am wondering why we choose some file extentions inc.php. why not just php?