/    Sign up×
Community /Pin to ProfileBookmark

Insert text from external file

Im not sure if this is possible but i wanted to ask anyway.

My company’s website contains pages which display our current updates for our software as well as the newest EXE date of our software. There are currently about 5 pages that contain this EXE date.

Whenever that date changes, i go to all 5 pages, change the date and re-upload. Is there any way to create a blank htm file that contains this date and have the 5 pages pull the date from that file?

I know this is a possibility in Frontpage using substitutions but im current using Expression Web and the only way to use substitutions is in ASPX pages which i have no knowledge in.

Any help would be appreciated, thanks.

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@mleach82authorSep 17.2008 — Forgive my ignorance but my knowledge is limited to basic HTML. How would i setup such a task using PHP?
Copy linkTweet thisAlerts:
@mleach82authorSep 17.2008 — So im getting somewhere with this. After doing some searching ive found i was able to do this with JavaScript. Here is what i have:

In the <head> i have entered this:

<script type="text/javascript" src="../../../Templates/javascript/exedate.js"></script>

The exedate.js contains this:

var exedate = 09172008

And where it needs to be displayed i have this:

<script type="text/javascript">document.write(exedate);</script>

This all works but i have one question. How can i display the date using slashes to separate the month day and year? If i ever the slashes with the date it appears to divide the 3 numbers and gives me a -2096 instead of the date.

Thanks
Copy linkTweet thisAlerts:
@BonRougeSep 17.2008 — I think the information you want about php is in the link. Which part of it do you not understand?

As for your javascript question, you can put the number (with the slashes) in quotes - it then becomes a string rather than a number.
Copy linkTweet thisAlerts:
@mleach82authorSep 17.2008 — Thank you very much for your help, the quotes worked.
×

Success!

Help @mleach82 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.19,
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,
)...