[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

read / write to a text file

I want to increment a value on a text file on a server and then write that value to html pages.....I dont know where to start. What should I use to do this. Basically Im looking for any explanation of how this is done, so I know where to look.
0
beebop
Asked:
beebop
  • 3
  • 3
1 Solution
 
TTomCommented:
Clearly, this is a server side process.

How it is accomplished will depend on the server.  If it happens to be M$ IIS, this can be done using Active Server Pages.  If not, it will probably require some sort of CGI script.  If you are trying to implement a hit counter, there are numerous scripts and services (including M$ Front Page) which have components/scripts available to accomplish this.

Tom
0
 
beebopAuthor Commented:
I dont want a counter. I want something that will hold a record of a particular vote on a question. The problem I have with server side stuff is my website is held on a server where they dont allow cgi type scripts. does this mean that its impossible to do what I want to do.
Is it possible to place a perl interpreter in your space on a server. Im basically lost with server side stuff. Its not just a matter of getting to grips with a language.
Can you give me any site addresses that will start with the basics of server side stuff or any good books that I could read.
Bee
0
 
TTomCommented:
Bee:

Hmmm.  You might want to check out www.scriptsearch.com and look for something like "polling" apps.  You can also look at www.activeserverpages.com and see if you can find any links to something like that.

Although I am not really familiar with them, I have heard of apps (either ASP or Java?) which will do what you want.

As far as server side stuff goes, a little depends on your platform.  M$ Active Server Pages, NetScape LiveConnect(?) are pretty much scripting solutions which run on the server.  Very much like writing client side script, but it runs at the server and ships "plain vanilla" HTML to the client.

So far as I know, I don't think you can just install a Perl interpreter on your ISP's server, but I am also not a real Perl guru.

Try www.activeserverpages.com for some good introductory background/tutorials on ASP.  If you want a good beginner's book on ASP, the WROX Beginning ASP is pretty good.  Unfortunately, again, this is pretty much M$ specific stuff.

Tom
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
beebopAuthor Commented:
cheers tom
0
 
TTomCommented:
Thanks!  Good luck.

Tom
0
 
jpoesenCommented:
There are a number of free services out there that will run a range of pre-written cgi-scripts for you, like form mailers, counters, poll-scripts, etc.

Check out http://thefreesite.com/Webmaster_Freebies/

Good luck
jpoesen
0
 
beebopAuthor Commented:
I had competely forgotten this question was posted, anyway I know the answer now 2 years on - anyway thanks for being patient for yopur points TTom
Bee
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now