| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Nov 2003
Posts: 38
![]() | 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 |
| |
| | #2 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | 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" --> |
| |
| | #3 (permalink) |
| RyanPrice.ca - Developer Join Date: Dec 2003
Posts: 1,328
![]() ![]() ![]() | 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 |
| |
| | #4 (permalink) |
| You are here: X Join Date: Oct 2003 Location: US
Posts: 483
![]() ![]() ![]() ![]() ![]() | 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. |
| |
| | #6 (permalink) |
| Senior Member Join Date: Jun 2003 Location: Markham, Ontario, Canada
Posts: 3,370
![]() ![]() ![]() ![]() | 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] |
| |