[ back to toc ]


Date: 2002/02/07 13:59

I would like to run a CGI script only Mon-FRI.

How do I detect what day it is?

Next, I'm trying to retrieve a web page and save the contents to a file on
my server. I wish to append the contents to an existing file. My question
is can I save only the text within tables from the retrieved webpage? If
so how do I do this? If not, can I strip away the HTML?

You can get the time using


that will tell you what day it is. If the day is something you do not like
just print out that the program is not reachable.

You should retrieve the HTML page into a variable and then use regular
expressions to cut off what you actually need.


[ back to toc ]