Discussion Locked

Page content update management

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello experts - I want to provide my client with an "easy" way to update page content (changes in schedule dates). The client knows how to upload files to his web host but has no web programming skills. Can you suggest a way to link a simple Notepad or Word-type doc to display on a page?

Thanks

2 replies

by pete8

Here's a php solution:

data.txt is a tab delimited file:
10/2/2004 [tab] Event1 [newline]
11/1/2004 [tab] Event2 [newline]

\n");
$Data = file ($TheFile);
for ($n = 0; $n < count($Data); $n++) {
$GetLine = explode("\t", $Data[$n]); // split on tabs
print ("

$GetLine[0]   $GetLine[1]

\n");
//$GetLine[0] is the first element of the array - the date.
}
print ("\n");
fclose ($Open);
print ("

\n");
} else {
print ("Unable to read from data.txt!
\n");
}
} // End of ReadFromFile Function.
?>

Hope this helps - this is one of many solutions.

by young77478

Pete8

Sorry for not responding way back in 2004! Don't know how this one slipped by. In any case, thanks. After the initial request from my client, he decided to use me to update the pages. Better for my income stream.

This discussion is closed to new replies.