Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Perl
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Perl section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2006, 04:34 PM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default GoDaddy script install problems

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

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
 
Old February 21st, 2006, 12:52 AM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!
 
Old July 12th, 2006, 08:06 PM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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...ear=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.

 
Old October 24th, 2006, 07:39 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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:

Code:
#!/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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 Install problems meichmann BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 1 August 6th, 2008 05:42 PM
RH Linux 9 Install Problems jwholahan Linux 0 June 1st, 2008 03:11 PM
INSTALL PROBLEMS jjmonty BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 November 16th, 2006 07:57 PM
TBH install problems jjmonty BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 September 26th, 2006 05:23 PM
Post Install Problems planoie Visual Studio 2005 0 July 21st, 2004 04:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.