![]() |
|
||
|
|
|
||
|
|
|||
|
|
|||||||
| Notices |
| Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here. |

![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Members
Join Date: Jul 2004
Posts: 843
|
Or do you have to use php or shtml or some other extension?
__________________
www.lotzadollars.com |
|
|
|
|
|
#2 |
|
on prozac - be gentle
Join Date: Oct 2002
Location: Canada, eh!
Posts: 1,069
|
They can if you ask your host to set it up for you.....but I believe it puts extra strain on your server (not a WHOLE lot, but a little) so if speed is a huge issue, you may want to use .html....
|
|
|
|
|
|
#3 |
|
Easy Like Sunday Morning
Want to see your own Advertising Here!
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
|
Server Side Includes (SSI) use CGI includes and most go to pages labeled .shtml
You can also do virtual includes using PHP, and they have to be called out on pages ending in .php However, you can also have your server set up by your host (if they're amenable to it) to have your .shtml pages actually end in just .html (but really be .shtml). I am told you can also do this with PHP, however no host will do both because then it causes too much server drag to parse for both. |
|
|
|
|
|
#4 |
|
Cramming 3 people in a Room to Attend Show
Want to see your own Advertising Here!
Join Date: Oct 2002
Location: Amid the Cornfields of Illinois
Posts: 5,366
|
It's a value set in your apache config ... otherwise, what they said about server load.
__________________
SEX STORY TEXT Exotic Material for Adult Websites Available for part time (project or ongoing) work ... |
|
|
|
|
|
#5 |
|
Buys wine at Publix!
Join Date: Jun 2004
Posts: 170
|
If you put this line:
AddType application/x-httpd-php .php .phtml .php3 .html .htm .shtml into the root .htaccess file it will allow .htm or .html files to be parsed so that includes can be used on them. It may slow your server down, lots of debate on how significant this is. I have used this for years now with no problems or noticeable difference in speeds. |
|
|
|
|
|
#6 |
|
Jebus loves me
Join Date: Dec 2004
Location: 40 Oz to Freedom
Posts: 857
|
here is a link to a SSI resource
http://bignosebird.com/ssi.shtml
__________________
Sigless |
|
|
|
|
|
#7 |
|
Cunty
Want to see your own Advertising Here!
Join Date: Jan 2003
Posts: 10,150
|
AddType text/x-server-parsed-html .html
AddType text/x-server-parsed-html .htm I run with this in my root .htaccess and have had no noticable server load.
__________________
Sucks to be you. |
|
|
|
|
|
#8 |
|
Members
Join Date: Jul 2004
Posts: 843
|
Ok and next question, what's the best way to write one out? I know the php way is pretty simple but does the html way vary much?
__________________
www.lotzadollars.com |
|
|
|
|
|
#9 | |
|
Cunty
Want to see your own Advertising Here!
Join Date: Jan 2003
Posts: 10,150
|
Quote:
<!--#include virtual="whatever.txt" -->
__________________
Sucks to be you. |
|
|
|
|
|
|
#10 |
|
Cunty
Want to see your own Advertising Here!
Join Date: Jan 2003
Posts: 10,150
|
Not sure but I re-read your post and didn't know if you meant how to write the code to call the include or if you wanting to know how to write the include itself...
For any thing you're wanting to include in to your page just write the html or text and save it as .txt
__________________
Sucks to be you. |
|
|
|
|
|
#11 |
|
Members
Join Date: Dec 2003
Posts: 138
|
Rather than adjusting your httpd.conf or your root .htaccess to make all .html pages parsed for SSI, just add this to your .htaccess file:
XBitHack on Then for any page(s) you want to parse for SSI, just change the permissions on that/those specific files to 0755.
__________________
Step 1: Join NSCash and grab your link codes. Step 2: ??? Step 3: HUGE PROFITS!!! ![]() Programmer Extrordinaire |
|
|
|
|
|
#12 | |
|
Cunty
Want to see your own Advertising Here!
Join Date: Jan 2003
Posts: 10,150
|
Quote:
I ask because I'd say at least 90% of my pages use includes so I'd rather just upload it and forget it.
__________________
Sucks to be you. |
|
|
|
|
|
|
#13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Members
Join Date: Dec 2003
Posts: 138
|
Quote:
|