Web page extensions?

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
macbeth
Forum Newbie
Posts: 9
Joined: Fri Apr 24, 2009 9:27 am

Web page extensions?

Post by macbeth »

I am creating a brand new site as a php newbee and I will have some pages that will not use any php code. My question is:

What is the standard procedure for naming conventions for web sites that have mixed pages? Do I just name every page with a .php extention or should I have mixed .html and .php pages in my web site?
crazycoders
Forum Contributor
Posts: 260
Joined: Tue Oct 28, 2008 7:48 am
Location: Montreal, Qc, Canada

Re: Web page extensions?

Post by crazycoders »

If you start doing a php website but plan on having static content, i would still recommend doing a .php only site. Sure some pages will not have PHP to run but it's nothing compared to the trouble of actually changing the links sitewide the day you decide to rename that static content file to a .php extension. So you are better off doing all php pages although no php may appear in them!
macbeth
Forum Newbie
Posts: 9
Joined: Fri Apr 24, 2009 9:27 am

Re: Web page extensions?

Post by macbeth »

That makes a lot of sense. Thanks so much for the reply.
Post Reply