Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 12-12-2004, 04:25 PM   #1 (permalink)
Inactive
 
Runilo's Avatar
 
Join Date: 06-09-04
Location: Faroe Islands
Posts: 145
iTrader: 0 / 0%
Latest Blog:
None

Runilo is on the right pathRunilo is on the right pathRunilo is on the right path
Changing from HTML to PHP

Is it possible to have php includes, or any other kind of include for that matter, without having to change the extension from html to php?
Runilo is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-13-2004, 05:10 AM   #2 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,821
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
Yes.
At least it is on Apache servers, you can use .htaccess files to cause the Apache to send .html files through the PHP processor.
You have to have the right Apache directive permissions for it to work.
Put this in a text file...
Code:
AddType application/x-httpd-php .html
... save it to your web server as .htaccess
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-13-2004, 06:01 AM   #3 (permalink)
Contributing Member
 
Jason's Avatar
 
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 1,200
iTrader: 0 / 0%
Latest Blog:
None

Jason is just really niceJason is just really niceJason is just really niceJason is just really niceJason is just really niceJason is just really niceJason is just really niceJason is just really niceJason is just really niceJason is just really niceJason is just really nice
Send a message via MSN to Jason
Thats what I was going to say
Jason is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-13-2004, 09:26 AM   #4 (permalink)
Inactive
 
Runilo's Avatar
 
Join Date: 06-09-04
Location: Faroe Islands
Posts: 145
iTrader: 0 / 0%
Latest Blog:
None

Runilo is on the right pathRunilo is on the right pathRunilo is on the right path
Thanks guys.

I am on apache.

So just put that htaccess file up and keep the normal php includes in the html document and keep the html extension?
Runilo is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-13-2004, 11:34 AM   #5 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,821
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
Yup, that's the idea.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2004, 05:22 PM   #6 (permalink)
Inactive
 
seonewbee's Avatar
 
Join Date: 05-12-04
Posts: 520
iTrader: 0 / 0%
Latest Blog:
None

seonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really nice
What happens if you set the persissions so that it is executable? 645 instead of 644. Does it get parsed?
seonewbee is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2004, 08:05 PM   #7 (permalink)
Inactive
 
Join Date: 11-20-04
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

kakarotto is liked by many
So what .htaccess do?
kakarotto is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing .html file names and SEO ranking help/advice. matius SEO Forum 2 06-14-2007 05:26 PM
Changing from HTML to WordPress... Does it affect ranking? sniperhiga SEO Forum 9 04-23-2007 03:51 AM
Changing from HTML to WordPress... Does it affect ranking? sniperhiga Web Design Lobby 1 04-21-2007 01:45 AM
HTML: What if html tidy messes with the page layout ? Linda in NY Coding Forum 63 04-18-2007 09:54 AM
Google Toolbar About.HTML HTML Injection Vulnerability imaginemn Google Forum 5 09-21-2004 12:06 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:10 AM.
© Copyright 2008 V7 Inc