Links to Scripts
Accessing files
-
Show the contents of a file
-
Read and Append to a file
-
Update a file
Mailmerge allows form data to be saved to a file, or sent via e-mail. You
define what the input form looks like, and what the output looks like. Mailmerge
is only for writing files, not reading them.
SWISH and wwwwais. This is the script that allow users to search for keywords
on your site. The book explains how to download it and install it. Note that
words inside HTML tags are not indexed. This includes heading tags and title
tags, too.
Server Push. The clock example from the book, and an example that changes
the background color and text color every second.
Browser Pull. A simple example that does a countdown.
-
Countup
-
Countdown. Doesn't use scripting, uses <META
http-equiv="refresh" content="2.url=1.html>
File Upload
-
Standard Input
-
View Uploaded File
-
Similar to the line counting script in the text
Cookies. A few scripts that show how cookies can be set and retrieved
-
Set the cookie
-
Get the general cookies, wait to see the timed cookie go away
-
Get the general cookies and the restricted cookie
-
Get the cookies from a different server (you won' see any of them)
CGIWrap. Here are two links to the same script. The script tries to access
a file that has rw access only for downeyt. The first script will
fail to open the data file. The second will be able to open the data file
and append data to it.
-
Using CGIWrap
-
CGIWrap general information
-
Without
CGIWrap. Here is the URL to the actual path in my directory:
http://www.cs.fiu.edu/~downeyt/cgi-bin/test_file_write.cgi
-
Using
CGIWrap. Here is the URL using CGIWrap
http://www.cs.fiu.edu/cgi-bin/cgiwrap/~downeyt/test_file_write.cgi
-
Go to the cgi-bin of the www.cs.fiu.edu server
-
Execute the script cgiwrap
-
Pass two parameters to the script
-
~downeyt, the root directory of the owner of the script
-
test_file_write.cgi, the name of the script to run in the user's directory
-
In order for CGIWrap to work on mongoose, the script to run must be placed
in the public_html/cgi-bin directory of the user's root directory.
The directory only needs rwx for downeyt, or for your account if it is your
script.