It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

External text source!!

External text source!!

Postby BONEDADDY on Fri Oct 06, 2006 6:21 am

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.
BONEDADDY
 
Posts: 0
Joined: Fri Oct 06, 2006 6:17 am
Location: Concord CA

Postby johneva on Fri Oct 06, 2006 11:11 am

Yeah aslong as there server has PHP support you can use an include like so.

Code: Select all
<?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.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby webmaster on Sat Oct 07, 2006 10:59 am

Another way (not as good as johneva's). Is to use iframes. Do only use this if your server doesn't support PHP.
Code: Select all
<iframe src="news.txt"></iframe>
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden


Who is online

Users browsing this forum: No registered users and 9 guests