|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Update a web site WITHOUT using a database
I want to create a site that has an admin section with update capabilities. The thing is, I don't want to use a database to store ANYTHING.
I want to use simple text files that can be parsed and read by the appropriate page on the site. Example: The home page has a news box. I go to the admin section and write a new article. I save that article and the news box updates from a text based file with the added article. Is it possible to keep a site updated simply using text based files? PHP has code that allows a page to pull text based content directly from any txt document. I know CF has the CFFILE tag to write variables and such to a text file. PHP example: readfile("newsArticles.txt"); Thanks! Nathan |
|
#2
|
|||
|
|||
|
Yes, use cffile to write text files to store whatever you need to.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
Thanks for the reply, but....
Thanks for the reply but the real question in my post was how to write code that reads a text file like the PHP example.
Nathan |
|
#4
|
|||
|
|||
|
cffile has a read action.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Update a web site WITHOUT using a database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|