Solved

Web Application question

Posted on 1998-11-17
6
195 Views
Last Modified: 2013-12-25
I am developing a web application that enables users to log on to a page and record their location.  Very much like a diary.  This data will be shown to all users who view the page.  There will be many users on a page.

I have access to a unix server or a pc shared drive.  What is the easiest method to use.

I have thought about, Java, ActiveX, Perl.  I realise there has to be some type of database used. Has anyone got any suggestions ?

I also need the database to generate a web page on the fly.

Any clues.

Lee
0
Comment
Question by:lee_jd
  • 3
  • 2
6 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 1856414
ASP has "Application-"variables which are identical to all current users of the application. You need Windows NT & IIS to use ASP.
0
 
LVL 1

Expert Comment

by:aahzman
ID: 1856415
I haven't had any experience with ASPs so could not comment on them, but what you are wanting to do could very easily be done with Perl (or C).  You could use the built in routines to use Unix databases and query them with SQL, or you could store the information in flat-file databases (just a pure text file).

It shouldn't be too much of a task to program what you are wanting, and it's very easy to produce dynamic pages with Perl (the program would give out the information after readin it from a database, as opposed to the database generating the pages...)
0
 
LVL 2

Author Comment

by:lee_jd
ID: 1856416
I've can do c better than perl, how does c work on a server, is it just compiled as norm and executed from the web page with parameters passed to it ?

Also, if it is a flat file, i.e. not a database I will get problems when more than one person tries to alter the file, I'm guessing I'll have to use a database.  Do you know of any libraries that will assist me.

Lee
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 1

Accepted Solution

by:
aahzman earned 100 total points
ID: 1856417
If you wanted to code your program in C then you would just compile it as normal and send a call to that executed program.  I have an example of a CGI program written in C if you'd like it, though I think it'd be best if you emailed me for this as it's a little long to post here.  If you know some Perl though I really would recommend using it - the string manipulations, searches and so on are so much easier to use and implement than in C.

Providing you lock the file when updating it using whatever library routine is appropriate for the programming language you use (eg, flock()), then you shouldn't get any problems when updating the flat-file database.  This has worked for me in the past.

It might be worth your while checking out this site:

    http://www.cgi-resources.com/

because there might already be a script you can use and modify.

Hope this helps you out.

Andy

0
 
LVL 1

Expert Comment

by:aahzman
ID: 1856418
Forgot to include my email...  Which is:  aahz@writeme.com
0
 
LVL 2

Author Comment

by:lee_jd
ID: 1856419
Many thanks,

Could you mail be that cgi prog to : lee@mula.demon.co.uk

Regards,

Lee
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now