1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Simply Writing to a File via Internet

Discussion in 'Software Development' started by k_carcrispix, Jan 9, 2003.

Thread Status:
Not open for further replies.
  1. k_carcrispix

    k_carcrispix Thread Starter

    Jul 21, 2001
    Is there any way, in any HTML-insertable language (JavaScript, Perl, etc.) that you can write to a file on the local server or some how keep a record of something?
    I want to keep a dynamic list of who's coming to a website, and need it to be added to each time the page is loaded. The operation would run in the background with no visual trace.
    I don't want to just use the automatic emailing method, as obviously that would get a little tedious with the emails.

    Any ideas?
  2. codejockey


    Feb 11, 2002
    Assuming that I understand your question correctly, the short answer is "yes".

    Since the server displays the pages you create (and may run scripts as part of building/processing a page), you can both collect and display dynamic information as part of your page. You could use either perl or javascript for this purpose. You might look at a "guestbook" as a simple example of the type of code that could be used.

    Note that the Apache web server, (as one example) produces all sorts of logfile information about who visits your site, their IP address, etc., so you may not need any additional recording (although you will have to parse the logfiles). You may be able to use the information that is already being recorded instead of writing your own code to record it again.

    Hope this helps.
  3. Rockn


    Jul 29, 2001
    If you want to know without having the user log in each time you can use cookies like they do here. Write into your code where it will check for the existence of your cookie for a registered user, if it is there it will log their access into a database and if they are not registered or have deleted your cookie it will redirect them to a login page.
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/112405

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice