NameSilo

Update site via .txt

Spaceship Spaceship
Watch

wdesigni-it

Established Member
Impact
0
Hi.

i was asked to do a dynamic site to be updated by the client. It wont have databases or anyting, just a way for the client to update.

now, o know nothing about programingg cms or alikes, and i'm stil looking for a way to the client to update without messing witn the layout, so:


Can i do it trough txt files? one for each page or section?

Is macromedia contribute any good for this to?

i have tried to do something with mambo, xoops, drupal, but i can't seem to do a normal website with it, and maybe the client would find it confuse too.


tnahks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
My advice would be to work with PHP. You can include files (.txt, .php) that your client can easily edit provided they know very basic HTML. You can set it up where they don't even need to know that much at all as well. If that doesn't work for your client then you could also look at SSI.
 
0
•••
You are just looking to update the content of the site by using a .txt file correct? What sort of content do you need updated? Just paragraphs or items for sale? Need more info. It could definately be done, but I need more info.
 
0
•••
how many pages you need? i can do it with flash :)
 
0
•••
Could you not use iframes?

And have ythe layout in one file and the content in the other?
 
0
•••
http://www.flashblocks.com/

if you want something brutally simple and you are willing to work with flash you could try the above, actually surprisingly elegant.....a well kept secret by a few of us, till now heheheeheh....Hope this helps

Nick
 
0
•••
use the php include code:

<?
include("/updates.txt");
?>

paste that into the section you want to update changing updates.txt to whatever your filename is called and all you have to do is update the txt file.

Magic!

dont forget to change the web page from .htm to .php

Joseph
 
0
•••
I wont use flash, not much. I give priority do standarts, so i use css layouts and formats. I want clean site for the client.

The content to be uptated will be text or pictures. I'll give flash bocks a look.

thank you.

I'll try that joseph, tnahks
 
0
•••
Flashblocks handles text and pictures, with a nice WP interface for the client as well
 
0
•••
i would personally use:
Code:
<?PHP include 'content.txt'; ?>


but if you don't have php, you could use:
Code:
<Iframe src='content.txt' frameborder='0'>
 
0
•••
The php includes have to be the easy, simplest solution, and you know it doesn't require any knowledge other than php support, basic function include() and the text file, or html or whatever needs update.

-Ahmed
 
0
•••
so i put this where i wanted the text, exactly this:

<?
include("/updates.txt");
?>


and this is what i got:

Warning: main(): open_basedir restriction in effect. File(/updates.txt) is not within the allowed path(s): (/home/wdesigni/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/wdesigni/public_html/teste.php on line 185

Warning: main(/updates.txt): failed to open stream: Operation not permitted in /home/wdesigni/public_html/teste.php on line 185

Warning: main(): open_basedir restriction in effect. File(/updates.txt) is not within the allowed path(s): (/home/wdesigni/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/wdesigni/public_html/teste.php on line 185

Warning: main(/updates.txt): failed to open stream: Operation not permitted in /home/wdesigni/public_html/teste.php on line 185

Warning: main(): Failed opening '/updates.txt' for inclusion (include_path='.:/usr/local/lib/php') in /home/wdesigni/public_html/teste.php on line 185

-------------------------------

now, since i know nothin about php, do i have to put the file somewere specific? or the same diretctory is fine?


i'm getting there palls. oh and hou about css format to aply on the text?
 
0
•••
try chaging it to this and make sure the .txt file is there in the same directory.

<?
include("updates.txt");
?>
 
0
•••
it worked.

part 2 - formating with css.
 
0
•••
Appraise.net
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back