p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP 3.0 (http://p2p.wrox.com/forumdisplay.php?f=27)
-   -   asp & text files as data store? (http://p2p.wrox.com/showthread.php?t=6393)

raa November 19th, 2003 04:05 PM

asp & text files as data store?
I'm working on a site that doesn't have any database for hosting, but they want to have a simple content management system where they can sign on & post links with a brief statement to go with it. I'm wondering if this is possible with text files? I'm starting to make my way through the book, but so far can't find any info on text files, which I believe are also called flat files or comma delimited files.

Thanks for any suggestions or pointers to resources.


Imar November 20th, 2003 06:17 AM

Well, yes, it is possible, but IMO it's going to be pretty difficult.

Here's what you could do:

1. Use a FileSystemObject (FSO) to read and write to files. Using the FSO requires you have to have permissions for the IUSR_MachineName account to it is allowed to access the files.

2. Allow your users to type text in a text area, which you can then save in a new or existing text file using the FSO.

3. This new text file can either be a complete HTML page (with <html> tags, and so on), or just the content part.

4. If it's the content part, you can use the INCLUDE statement to include the content page in other, templated pages.

IMO however, a database is the preferred way to go. This makes it much easier to store data and reuse it on pages on your site.

Another great alternative is to use Macromedia Dreamweaver in combination with Macromedia Contribute. This allows you to create a templated site in Dreamweaver. End users are then just allowed to edit the content regions of the page. They don't have to have knowledge about HTML as they can use a Design View to create content pages. It even comes with integration of FTP etc, so it's pretty easy to save and automatically update pages on the remote server.

Hope this helps, and if you need more ideas, feel free to post here.



Imar Spaanjaars
Everyone is unique, except for me.

All times are GMT -4. The time now is 12:41 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.