NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page INCLUDES w/o PHP?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 12-19-2003, 11:06 AM THREAD STARTER               #1 (permalink)
NamePros Member
 
NetButch's Avatar
Join Date: Nov 2003
Posts: 38
NetButch is an unknown quantity at this point
 



INCLUDES w/o PHP?


I am wondering if I can do a similar function to the PHP Include() function by using only HTML/DHTML/XML...

I want to make changing text really easy by using .txt files for the text and formating everything with CSS... the server does not support PHP or ASP and it will not ever.. so I need to find a way to do this without anything except the basic languages.. even JavaScript would be okay..

thanks in adavnce.

Butch
__________________
NetButch ... Catch Your Audience!
www.netbutch.com
NetButch is offline  
Old 12-19-2003, 11:22 AM   #2 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



You can try something like this for use with Internet Explorer:

<object type="text/x-scriptlet" width="100" height="100" data="file.txt"></object>

Or if your server supports Server Side Includes you could do it that way. You can check if it supports SSI by adding something like:
<!--#echo var="DATE_LOCAL" -->
to a .shtml page and see if it displays the time. Then if SSI is enabled you can include files with the include directive:
<!--#include file="file.txt" -->
deadserious is offline  
Old 12-27-2003, 09:37 PM   #3 (permalink)
RyanPrice.ca - Developer
Join Date: Dec 2003
Posts: 1,328
Jeanco is a jewel in the roughJeanco is a jewel in the roughJeanco is a jewel in the rough
 



yup, and can you set your .htaccess file so you don't even need to rename from .HTML - you can set it so that the webserver parses HTML like it would SHTML.

Google is your friend
__________________
Ryan Price - Webmaster
www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign
Jeanco is offline  
Old 12-28-2003, 10:39 AM   #4 (permalink)
You are here: X
 
mr-x's Avatar
Join Date: Oct 2003
Location: US
Posts: 483
mr-x is a glorious beacon of lightmr-x is a glorious beacon of lightmr-x is a glorious beacon of lightmr-x is a glorious beacon of lightmr-x is a glorious beacon of light
 



This is a late reply but for the benefit of others, http://httpd.apache.org/docs/mod/mod....html#xbithack

If you run apache, you can mark a file to parsed by the server by making it executable, i.e.. o+x from the command line or use your ftp client.
mr-x is offline  
Old 12-30-2003, 07:57 PM   #5 (permalink)
NamePros Member
 
Jamie_net's Avatar
Join Date: Dec 2003
Location: Usa
Posts: 136
Jamie_net is an unknown quantity at this point
 



This shows how to with SSI at the bottom of the page.

http://www.xentrik.net/scripts/include.php
__________________
eyeonjamie.net
Jamie_net is offline  
Old 12-31-2003, 09:37 AM   #6 (permalink)
Senior Member
Join Date: Jun 2003
Location: Markham, Ontario, Canada
Posts: 3,370
jj2ii3344 is a jewel in the roughjj2ii3344 is a jewel in the roughjj2ii3344 is a jewel in the roughjj2ii3344 is a jewel in the rough
 



Very nice info guys! Thanks!
__________________
www.canonlens.ws
Updated daily - Get Canon lens reviews and good deals on new/used Canon lens from CanonLens.ws![/SIZE]
jj2ii3344 is offline  
Closed Thread


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


 
All times are GMT -7. The time now is 02:08 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger