inc.php and =@

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

inc.php and =@

Post 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");
UrButtFullOfArr0ws
Forum Commoner
Posts: 64
Joined: Wed Feb 21, 2007 11:42 am
Location: Up a tree >.>"

Post by UrButtFullOfArr0ws »

User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: inc.php and =@

Post 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.
Post Reply