Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
index.htm or index.php
Old 10-28-2005, 09:17 PM index.htm or index.php
Experienced Talker

Posts: 32
Trades: 0
Is there any downsides of creating my pages in php instead oh html.

Example: the home page would read /index.php, instead of index.htm.

Thanks
TheBreadBaker is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-28-2005, 09:24 PM
webfreak's Avatar
Extreme Talker

Posts: 236
Location: USA
Trades: 0
None that I could see of. You could write in your .htaccess for HTML pages to be parsed as PHP, so you get the best of both worlds.
webfreak is offline
Reply With Quote
View Public Profile Visit webfreak's homepage!
 
Old 10-28-2005, 09:32 PM
Experienced Talker

Posts: 32
Trades: 0
Yeh, do you know were I could learn about that? The only reason i would use php, is because its the only way I know how to make other files to get included in the pages layout.

Thanks
TheBreadBaker is offline
Reply With Quote
View Public Profile
 
Old 10-28-2005, 09:36 PM
webfreak's Avatar
Extreme Talker

Posts: 236
Location: USA
Trades: 0
To do the rewrite, use this:
Code:
AddType application/x-httpd-php .php .htm .html
You could also use SSI, and then your pages would need to have a .shtml extension.
Code:
<!--#include virtual="filename.html" -->
Either should do what you want.
webfreak is offline
Reply With Quote
View Public Profile Visit webfreak's homepage!
 
Old 10-28-2005, 09:54 PM
Experienced Talker

Posts: 32
Trades: 0
Thanks, you have been really helpful.

I tried SSI, and Javascript didn't work properly, ill use your other suggestion, of parsing html as php, (with that code).

Thanks very much.
TheBreadBaker is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to index.htm or index.php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21804 seconds with 12 queries