Page 1 of 1

inc.php and =@

Posted: Fri Jul 20, 2007 12:08 pm
by m2babaey
Hi
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");

Posted: Fri Jul 20, 2007 12:24 pm
by UrButtFullOfArr0ws

Re: inc.php and =@

Posted: Fri Jul 20, 2007 12:44 pm
by onion2k
m2babaey wrote:I am wondering why we choose some file extentions inc.php. why not just php?
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.