View Full Version : What is a .inc file?

06-21-2007, 10:53 PM

What is a .inc file?

Also what is the difference between mysql and mysqli ?

And finally does anyone know how i can store the ip addresses of all the people who vist my site? (I assume its would be PHP and MySQL).

Appreciate your help on this one.

06-22-2007, 06:52 AM
an .inc file is just a file with code in it which is included into your main site. Imagine a footer with copyright information and designed by info then imagine writing this for a 50 page site. It would be better to just have 1 file with your copyright stuff in it then just include that file into every page. When you need to update it you just have to update the one file and the 50 pages will reflect the update. You dont have to use the .inc extension and i would advise against it. Use .php if you are writing a php app as its more secure

MYSQLI is an IDE frontend which allows you to connect and manage mysql graphicaly. It ships with PHP5 i think

php has a built in function which can grap the IP address. Remember that if a proxy is being used in a large network its the proxy IP which you would retrieve not the machine which is accessing your site

06-22-2007, 09:53 AM
Thanks DJ thats made it clear for me.