• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CGI?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGI?


  • Subject: CGI?
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 12 Apr 2001 11:00:42 -0700

I'm trying to write a CGI to display a counter in a web page. This is
the script I've written:

set FileID to open for access file "HD:counter" with write permission
if (get eof FileID) is not 0 then
set NumberOfAccess to read FileID
else
set NumberOfAccess to 0
end if
set NumberOfAccess to NumberOfAccess + 1
set eof FileID to 0
write (NumberOfAccess as text) to FileID
close access FileID
NumberOfAccess

Now, what do I have to do in order to get the number to display in the
web page? I'm using Claris Home Page to write the HTML and am using
Personal Web Sharing to publish the page.

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: CGI?
      • From: Timothy Bates <email@hidden>
    • Re: CGI?
      • From: cris <email@hidden>
    • Re: CGI?
      • From: Yosemite <email@hidden>
  • Prev by Date: Anyone tried text searching in Acrobat?
  • Next by Date: RegEx simple problem-a quickie
  • Previous by thread: Re: Anyone tried text searching in Acrobat?
  • Next by thread: Re: CGI?
  • Index(es):
    • Date
    • Thread