Welcome to WebmasterWorld Guest from 174.129.67.45

Forum Moderators: mack

Message Too Old, No Replies

including php in and html-site later on?

     
11:26 am on Jul 30, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 7, 2006
posts:694
votes: 0


During the near future my site will only be a html-site (I don't know any php/mysql yet). However, I plan on implementing one or two dynamic features some time in the future.

Is it okay if I simply create the page as html-files and then later try to embed the php/mysql code?

Somebody suggested to me that I might want to start off using php...by using the html-code but naming the files .php ?! (I might have misunderstood him)

But I assume it's perfectly doable to just create an html-version of my website and implement stuff such as a survey or a tool or two on the site using php?

1:08 pm on July 30, 2008 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 4, 2001
posts: 2194
votes: 25


Whether you use .php, .asp, .aspx, .shtml etc., all pages are still html. Even if you do not have any php code in the page, you can still use the .php extension. So instead of index.html, use index.php. This will save you a lot of time in the future plus, more importantly, you won't have to use any 301 redirects when it becomes necessary to change file extensions. Your pages will already be properly index.

Marshall

1:13 pm on July 30, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 29, 2000
posts: 12095
votes: 0


My sites are all exclusively .htm or .html file extensions and I used PHP includes on each and every one of them.

This thread has a couple of time-saving tips and what you put into .htaccess to use PHP includes on html pages:

[webmasterworld.com...]

No problem using an .htm or .html file extension; in fact it's a good idea because you aren't revealing what kind of technology you're using.

2:54 pm on July 30, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 7, 2006
posts:694
votes: 0


thanks! I'll read through the links youve given me tonight when I have time.