|
Subject:
|
GoDaddy script install problems
|
|
Posted By:
|
robhmac
|
Post Date:
|
2/19/2006 3:34:44 PM
|
I've had a counter script (modified version of ezcount.cgi working on my godaddy account for over 6 months. All of a sudden, I'm getting:
WARNING: 'exec cmd' is disabled. Use 'exec cgi' or 'virtual' instead-->
from the statement in my page <!--#exec cmd="cgi-bin/oascount.pl"-->
They've given me some excuse that my account doesn't support CGI, so I've upgraded and installed the script in the new cgi directory, changed the file extension to .cgi, but still no luck.
Thank you,
-Rob webmaster www.oasections.com
|
|
Reply By:
|
robhmac
|
Reply Date:
|
2/20/2006 11:52:15 PM
|
Figured it out (no thanks to their tech support) They all of a sudden decided not to support "exec cmd" or cgi-bin directories.
I had to move the script to a cgi directory, and then use an absolute vs. relative path for the script:
/home/content/1/2/3/username/html/
Where "/1/2/3/" are the first three letters of your user name and "username" is the user name you used to set up your hosting account.
Hope this is helpful, as they are notorious for not supporting third-party scripts and I was dreading that mine would simply never work!
|
|
Reply By:
|
Insiderman
|
Reply Date:
|
7/12/2006 8:06:20 PM
|
I've got a CGI calendar script in PERL. The program delivers today's calendar information from the following URL: http://www.digitalburg.com/cgi/suite/calendar/calendar.cgi?request=display_specific_date_events&website=default&month=7&day=12&year=2006&set=1 How can I get today's date into the month, day and year area? These are a couple of date-related lines from the main_display.pl module that might be relevant: $today = &today(); ($month,$day,$year,$weekday) = &jdate($today); The website URL is http://www.digitalburg.com/ I just want visitors to be able to go directly to today's events! Thanks for your help in advance.
|
|
Reply By:
|
ciderpunx
|
Reply Date:
|
10/24/2006 7:39:50 AM
|
Don't know how to fix your script without seeing the code.
This would be a generic way to find out and print the date. Feel free to adapt to your needs:
#!/usr/bin/perl -w
use strict;
# use time to get the current date/time, and localtime to grab fields
my ($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$dst)=localtime(time());
# add 1900 to year (could be different in different regions)
$year+=1900;
# use printf to format it nicely.
printf "Time is: %02d:%02d:%02d On: %02d-%02d-%02d\n", $hour,$min,$sec,$year,$month,$mday;
-- Don't Stand on your head - you'll get footprints in your hair http://charlieharvey.org.uk http://charlieharvey.com
|