Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Perl
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 19th, 2006, 04:34 PM
Registered User
 
Join Date: Feb 2006
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old February 21st, 2006, 12:52 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
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!
Reply With Quote
  #3 (permalink)  
Old July 12th, 2006, 09:06 PM
Registered User
 
Join Date: Jul 2006
Location: , , .
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.

Reply With Quote
  #4 (permalink)  
Old October 24th, 2006, 08:39 AM
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06:42 PM
RH Linux 9 Install Problems jwholahan Linux 0 June 1st, 2008 04: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 06:23 PM
Post Install Problems planoie Visual Studio 2005 0 July 21st, 2004 05:31 PM



All times are GMT -4. The time now is 02:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.