This is a discussion on "Is it possible to use an external text file for a variable" within the JavaScript Forum section. This forum, and the thread "Is it possible to use an external text file for a variable are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Is it possible to use an external text file for a variable
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|
|
||||
|
Re: Is it possible to use an external text file for a variable
PHP or ASP is better suited for the job than JavaScript. To acheive the effect in PHP, you need to change the extension from, say, .html to .php. Then create a file with the news in it on your server with the .php extension.
Open up index.php (or whatever the page you want to have the news on is called) and input the following where you want the news to appear:
|
|
|||
|
Re: Is it possible to use an external text file for a variable
Is the 'current news', news of your own making, so to speak, or is it coming from a third party. If it's the latter, look at using an RSS feed and having that update into your page automatically. |
![]() |
| Tags |
| possible, use, external, text, file, variable |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Load External .JS File Before Anything Else | tox0tes | JavaScript Forum | 1 | Jul 10th, 2007 14:03 |
| Help with function to read external file | jwhite68 | Flash & Multimedia Forum | 4 | Jul 6th, 2007 15:18 |
| How do I add new variable in a .TPL file | toasty | PHP Forum | 1 | Oct 9th, 2006 18:27 |
| Load .swf file with External text in Another Flash document | ien | Flash & Multimedia Forum | 3 | Aug 31st, 2006 14:29 |
| Can I invoke a timeline from an external text file Array? | d-kam | Flash & Multimedia Forum | 5 | Apr 1st, 2005 09:25 |