Forum Moderators: mack

Message Too Old, No Replies

including php in and html-site later on?

         

Makaveli2007

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

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



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?

Marshall

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

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



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

Marcia

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

WebmasterWorld Senior Member 10+ Year Member



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.

Makaveli2007

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

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



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