Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
including php in and html-site later on? Makaveli2007 msg:3711070 11:26 am on Jul 30, 2008 (gmt 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?
Marshall msg:3711116 1:08 pm on Jul 30, 2008 (gmt 0)
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 msg:3711119 1:13 pm on Jul 30, 2008 (gmt 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:
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 msg:3711215 2:54 pm on Jul 30, 2008 (gmt 0)
thanks! I'll read through the links youve given me tonight when I have time.