PDA

View Full Version : txt.files



opel
September 14th, 2003, 09:54 AM
is it posible for dreamweaver to load text files into a page in the same way that flash can?

I have a flash site but for those without the player I thought it may be possble for them to look at and html site that has the same information, that way i only have to update one txt file?

senocular
September 14th, 2003, 10:06 AM
you can use server-side scripting or javascript (I think) .. so yes :)

abzoid
September 14th, 2003, 10:08 AM
You could insert it into the page as a server side include.

abzoid
September 14th, 2003, 10:09 AM
g'mornin senocular, you must type faster than I do. :}

senocular
September 14th, 2003, 10:15 AM
;)

come to think of it, the javascript thing might not be a solution ... what I was thinking of really wouldnt work since it would be in a different format :crazy: though there might be a way

Digitalosophy
September 14th, 2003, 03:30 PM
xml is a solution

can load into flash and html

[edit] actually your better off loading everything from a db so both sites can be updated at once{/edit]

JMS
September 17th, 2003, 10:21 AM
If your webserver supports server side includes, just include the txt file like so:


<!--#include file="textfile.txt" -->

Remember to name the file with a .shml extension in order for it to work.

Eyeball
September 18th, 2003, 06:32 PM
where do i include this PHP string??
in my html document????

JMS
September 21st, 2003, 11:18 AM
yes, you insert that line of code where you want the content to appear.

It isn't PHP code, that's just the way this forum displays the example code.

In order for 'includes' to work, your webserver must support SSI and your file needs to be named:

whatevername.shtml