http://www.example.com/cgi/suite/calendar/calendar.cgi?
request=display_specific_date_events&website=default&
month=7&day=12&year=2006&category_id=&set=1&session=44b573710dd85cf4
The problem is that I want to link to a current calendar page without updating this portion of the URL above: &month=7&day=12&year=2006
I've contacted the vendor who provided this rather useless reply:
"I am not aware of any specific link that you could use that would automatically display events for the current day, but you could achieve the same thing by using a script to automatically update the above link each day. Specifically, you could use a Perl or PHP script that would generate the numeric values for today's month, day of month, and year and then fill them into the URL that you listed above so that it would always point to the events for the current day. Obviously, the most important part of that URL is the following:
&month=7&day=12&year=2006
The new script would need to fill in and replace the "7" after "&month=", the "12" after "&day=", and the "2006" after "&year=" with the correct values for those items each day. I hope this helps."
Obviously, the vendor did not help... especially since I am not the hot PERL programmer some of you are.
Any suggestions on how I might fix this to AUTOMATICALLY bring in the correct month, day, year? Thanks!
[edited by: coopster at 1:41 pm (utc) on July 13, 2006]
[edit reason]
[1][edit reason] generalized domain; fixed sidescroll [/edit] [/edit][/1]
[perldoc.perl.org...]
to get the day/month/year data you need then stuff that into the URI string as needed.
#
($d,$m,$y) = (localtime)[3,4,5];
$y = ($y + 1900);
#
NOTE: you need to check to see if your script is using "one based" or "zero based" month values, (ie- does January equal "1" or "0", does December equal "11" or "12"?).
Make adjustment to $m is needed (ie- add or subtract "1" to $m)...
[edited by: jatar_k at 4:19 pm (utc) on July 15, 2006]
[edit reason]
[1][edit reason] examplified [/edit] [/edit][/1]