/    Sign up×
Community /Pin to ProfileBookmark

Loading a text file into an HTML page

Hello – I’ve got a simple problem that needs big help!

I’ve designed a message board in Flash that uses a PHP file to write to a .txt file.

However I no longer want to display the text in Flash – I only wish to use Flash to write the file.

So how can I show the contents of the txt file in a simple HTML page? I’m sure there’s a simple operator that will effectively “load” the variables (as in Flash), but I’m buggered if I can find it.

All help very greatfully appreciated!

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsMay 17.2004 — use [b]include()[/b] or [b]require()[/b]
Copy linkTweet thisAlerts:
@39steps40winksauthorMay 17.2004 — Thanks a million. Does this basically mean I just insert

[B]include("textfile.txt")[/B] into a frame or whatever?
Copy linkTweet thisAlerts:
@AdamGundryMay 17.2004 — You need a server-side language, such as PHP or ASP. The code ShrineDesigns referred to requires PHP.

Pyro has explained the necessary code for PHP and SSI [url=http://webdevfaqs.com/php.php#include]here[/url]. You can also do it in most other server-side languages, depending on what you have available. However, you can't do it in plain HTML.

Adam
×

Success!

Help @39steps40winks spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...