RE: Time sensative Sub Routine

2002-02-20 Thread Patrick

Using the Cron function on the server is not a problem. The promlem I have
is not knowing how to set up the commands in the script and the HTML form
that would let the users choose when they want the action preformed. From
what I understand with the cron function, is that it will run the script at
predetermined intervals. This does not give the users the ability to choose
the date they want the action preformed. I'm sorry if it sounds confusing.
I can not find any sub routines or scripts that allow for users to
pre-select dates for actions to be preformed. I have a greeting card script
and want users to be able to send cards days in advance that woulf only be
delivered on the requested date. 
Pat 

At 11:14 AM 2/19/2002 -0500, Al Hospers wrote:
 I am looking for information or a turorial on making a time
 sensitive sub
 routine for developing an html page and sending emails. U
 want the users to
 be able to choose when they want their cards to be made and
 the date to
 have a notice sent to the recipient.

check out the chron function on your web server

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, CD-ROM, HTML,
CGI scripting, and Graphic Design.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
Check out www.my-pcdoctor4u.com for all kinds of FREE items including FREE
E-Cards. 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Time sensative Sub Routine

2002-02-20 Thread Al Hospers

 I can not find any sub routines or scripts that allow for users to
 pre-select dates for actions to be preformed. I have a
 greeting card script
 and want users to be able to send cards days in advance that
 woulf only be
 delivered on the requested date.

there are likely not any precanned routines for this. one way to
implement it is have the cron called often. it triggers a script that
looks thru the pending jobs list  executes the ones that are within
some time range and then removes them from the list. the list is
created by the users calling another script. they choose their time
and the script adds their job to the list.

hth

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, CD-ROM, HTML,
CGI scripting, and Graphic Design.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Time sensative Sub Routine

2002-02-20 Thread Patrick

Ok I understand part of the Cron and it checking often to see if a script
needs to be executed. But i still dotn understand if I set up the HTML page
where the user selects the date they want the function to happen, how do I
set up the CGI script to read this and how does the Cron function know read
they date selected for this function. Keep in mind today we could get 10
people choosing 10 different dates. So yes I have cron set to run daily at
12.05 am but how will it know if the cgi script has any files that a user
has chosen to make for that date.
I know I am confusing things now. I am just trying to understand the
process of how this happens.
Pat
 At 10:01 PM 2/20/2002 -0500, Al Hospers wrote:
 I can not find any sub routines or scripts that allow for users to
 pre-select dates for actions to be preformed. I have a
 greeting card script
 and want users to be able to send cards days in advance that
 woulf only be
 delivered on the requested date.

there are likely not any precanned routines for this. one way to
implement it is have the cron called often. it triggers a script that
looks thru the pending jobs list  executes the ones that are within
some time range and then removes them from the list. the list is
created by the users calling another script. they choose their time
and the script adds their job to the list.

hth

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, CD-ROM, HTML,
CGI scripting, and Graphic Design.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
Check out www.my-pcdoctor4u.com for all kinds of FREE items including FREE
E-Cards. 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Time sensative Sub Routine

2002-02-20 Thread Al Hospers

 Ok I understand part of the Cron and it checking often to see
 if a script
 needs to be executed. But i still dotn understand if I set up
 the HTML page
 where the user selects the date they want the function to
 happen, how do I
 set up the CGI script to read this and how does the Cron
 function know read
 they date selected for this function. Keep in mind today we
 could get 10
 people choosing 10 different dates. So yes I have cron set to
 run daily at
 12.05 am but how will it know if the cgi script has any files
 that a user
 has chosen to make for that date.

I don't have the time to write this for you...

1 - there is a CGI script that is called by the HTML page that writes
the user's requested time  other info into a list on the server. a
database would even be better.

1 - the cron runs probably every hour of the day

2 - there is a script that the cron calls that reads the list/database
 gets all the users that are within that time period  does whatever
you need with the info - send an email, whatever.

it's really pretty straight ahead.

hth

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, CD-ROM, HTML,
CGI scripting, and Graphic Design.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Time sensative Sub Routine

2002-02-19 Thread Al Hospers

 I am looking for information or a turorial on making a time
 sensitive sub
 routine for developing an html page and sending emails. U
 want the users to
 be able to choose when they want their cards to be made and
 the date to
 have a notice sent to the recipient.

check out the chron function on your web server

Al Hospers
CamberSoft, Inc.
alatcambersoftdotcom
http://www.cambersoft.com

Shockwave and Director development, CD-ROM, HTML,
CGI scripting, and Graphic Design.

A famous linguist once said:
There is no language wherein a double
positive can form a negative.

YEAH, RIGHT



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]