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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

