GetDotted Domains

Viewing Thread:
"Urusei Machie"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sat 18/11/06 at 21:41
Regular
Posts: 19,415
This is where I post problems and questions while I work on my Language/Travel website.

Link coming soon =)
Fri 24/11/06 at 18:33
Regular
"It goes so quickly"
Posts: 4,083
You two have certainly been busy in here today :)
Fri 24/11/06 at 17:59
Regular
"Devil in disguise"
Posts: 3,151
Machie wrote:
> ...and daily image thingy.

Can still help you with that if you want. That you've switched the Perl doesnt make a great deal of difference.
Fri 24/11/06 at 17:36
Regular
Posts: 19,415
Excellent :D working beautifully, thanks Garin.

Now onto the poll and daily image thingy. I''l see if I can find some scripts. Matt doesnt seem to have any free poll scripts, how disappointing :(
Fri 24/11/06 at 17:30
Regular
"Devil in disguise"
Posts: 3,151
Change

print "$Hour\:$Minute\:$Second";

to

print "$Hour\:$Minute";
Fri 24/11/06 at 17:14
Regular
Posts: 19,415
Woo hoo!!

Excellent, well done where can I snip to take ou the seconds? It's a bit confusing with it in there.

Wow this is great :D one problem solved, one step closer to completing my site. Cheers Garin.
Fri 24/11/06 at 17:04
Regular
"Devil in disguise"
Posts: 3,151
Machie wrote:
> print "$current_zone\r\n";

Remove this line from the CGI script, left it in there by mistake.
Otherwise I've just tried this on my dataflame hosting and it works fine.
Fri 24/11/06 at 16:45
Regular
Posts: 19,415
no luck I'm afraid :( I also changed it to NewYork instead of Singapore, same result.

Any other things it might be?
Fri 24/11/06 at 16:40
Regular
"Devil in disguise"
Posts: 3,151
Hm..theres several reasons for that error

Instead of
<!--#exec cgi="/cgi-bin/textclock.cgi?zone=Singapore"-->

try...

<!--#include virtual="/cgi-bin/textclock.cgi?zone=Singapore"-->
Fri 24/11/06 at 16:26
Regular
Posts: 19,415
Would it be okay to get rid of this part?


$Standard_Time_Zone = 'EST';
$Daylight_Time_Zone = 'EDT';


Not sure if it's interupting the rest of the code. Does the index.shtml need to be 755 aswell?
Fri 24/11/06 at 16:24
Regular
Posts: 19,415
codes for index.shtml...

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content=" " />
<meta name="description" content=" " />
<title>Learn The Language</title>
</head>
<body text=#000000>

This is the time in Singapore;<br />

<!--#exec cgi="/cgi-bin/textclock.cgi?zone=Singapore"--><br />
</body>
</html>


and for textclock.cgi...

#!/usr/bin/perl

use CGI qw(:standard);

# Define Variables #

%Time_Zones= (
'GMT' => '0',
'NewYork' => '-5',
'Singapore' => '8',
);

$Display_Week_Day = '1';

$Display_Month = '0';

$Display_Month_Day = '0';

$Display_Year = '0';

$Display_Time = '1';

$Display_Time_Zone = '0';

$Standard_Time_Zone = 'EST';
$Daylight_Time_Zone = 'EDT';

$Display_Link = '0';

# Done
#

@Week_Days = ('Sunday','Monday',
'Tuesday','Wednesday',
'Thursday','Friday','Saturday');

@Months = ('January','February',
'March','April'
,'May','June','July',
'August','September','October'
,'November','December');

$query = new CGI;

if (($query->param('zone')) && ($Time_Zones{$query->param('zone')})) {
$current_zone=$query->param('zone');
} else {
$current_zone='GMT';
}
print "$current_zone\r\n";

print "Content-type: text/html\n\n";

if ($Display_Link != 0) {
print "<a href=\"http://www.scriptarchive.com/\">";
}

($Second,$Minute,$Hour,$Month_Day,
$Month,$Year,$Week_Day,$IsDST) = gmtime(time+($Time_Zones{$current_zone}*3600));

if ($IsDST == 1) {
$Time_Zone = $Daylight_Time_Zone;
}
else {
$Time_Zone = $Standard_Time_Zone;
}

if ($Second < 10) {
$Second = "0$Second";
}
if ($Minute < 10) {
$Minute = "0$Minute";
}
if ($Hour < 10) {
$Hour = "0$Hour";
}
if ($Month_Day < 10) {
$Month_Day = "0$Month_Day";
}
$Year += 1900;


if ($Display_Month != 0) {
print "$Months[$Month] ";
}

if ($Display_Month_Day != 0) {
print "$Month_Day";
if ($Display_Year != 0) {
print ", ";
}
}

if ($Display_Year != 0) {
print "$Year";
if ($Display_Time != 0) {
print " - ";
}
elsif ($Display_Time_Zone != 0) {
print " ";
}
}

if ($Display_Time != 0) {
print "$Hour\:$Minute\:$Second";
if ($Display_Time_Zone != 0) {
print " ";
}
}

if ($Display_Week_Day != 0) {
print " on $Week_Days[$Week_Day]";
}
if ($Display_Time_Zone != 0) {
print "$Time_Zone";
}

if ($Display_Link != 0) {
print "</a>";
}

exit;

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

I am delighted.
Brilliant! As usual the careful and intuitive production that Freeola puts into everything it sets out to do. I am delighted.
Everybody thinks I am an IT genius...
Nothing but admiration. I have been complimented on the church site that I manage through you and everybody thinks I am an IT genius. Your support is unquestionably outstanding.
Brian

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.