Can anyone see anything wrong with the below code?
# setup all the variables etc...
my ($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0,1,2,3,4,5,6];
$year = $year + 1900;
my $Date = "Date: $year-$month-$day";
print "Content-type: text/html \n\n";
print $Date;
}
I've tried everything I can (including commenting out the date grabbing part, and manually populating the values).
fatalsToBrowser doesn't seem to be showing anything either.. which really has me puzled (I don't have an error log I can access, before you ask Paul )
TIA.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
sub ShowDate { # setup all the variables etc...
my ($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0,1,2,3,4,5,6];
$year = $year + 1900;
my $Date = "Date: $year-$month-$day";
print "Content-type: text/html \n\n";
print $Date;
}
I've tried everything I can (including commenting out the date grabbing part, and manually populating the values).
fatalsToBrowser doesn't seem to be showing anything either.. which really has me puzled (I don't have an error log I can access, before you ask Paul )
TIA.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!