| View previous topic :: View next topic |
| Author |
Message |
BONEDADDY
Joined: 06 Oct 2006 Posts: 1 Location: Concord CA
|
Posted: Fri Oct 06, 2006 7:21 am Post subject: External text source!! |
|
|
| Im making a website and i want it to be as easy as possible for who i am making it for to edit what is on the page. I want it so they can just edit a text file and upload that other then having to deal with the entire page. |
|
| Back to top |
|
 |
|
|
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Fri Oct 06, 2006 12:11 pm Post subject: Re: External text source!! |
|
|
Yeah aslong as there server has PHP support you can use an include like so.
| Code: |
<?php include("news.txt"); ?>
|
Just replace the news.txt with the file name of your text file.
If there is no PHP support but there is SSI you can do it that way too. |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3646 Location: Sweden
|
Posted: Sat Oct 07, 2006 11:59 am Post subject: Re: External text source!! |
|
|
Another way (not as good as johneva's). Is to use iframes. Do only use this if your server doesn't support PHP.
| Code: |
| <iframe src="news.txt"></iframe> |
|
|
| Back to top |
|
 |
|