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 00:34
Regular
"Devil in disguise"
Posts: 3,151
Would I be right in asssuming you've already corrected the differing file extensions on the clock script?

The most likely cause of "Premature end of script headers" is file permissions. The script itself is fine (of course). Welcome to CGI and its lousy error reporting. :-)
Fri 24/11/06 at 00:11
Regular
Posts: 19,415
Oops had to mess up the months coding because of the 60 letter limit.
Fri 24/11/06 at 00:10
Regular
Posts: 19,415
Garin wrote:
> Well, cant offer much assistance without seeing anything... Are
> you calling the cgi in the same manner as you've called other
> scripts you're using? Also check the error logs of your host,
> most cgi problems will appear in there (assuming you have access
> to them).

I got these from the error log

[Thu Nov 23 23:11:46 2006] [error] [client 86.128.211.76] Premature end of script headers: /home/CENSORED/public_html/cgi-bin/textclock.pl

[Thu Nov 23 22:51:25 2006] [error] [client 86.128.211.76] File does not exist: /home/CENSORED/public_html/404.shtml


thought I should censor my username.

----

This is the index;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<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>
<!--#exec cgi="/cgi-bin/textclock.cgi"-->
</body>
</html>


I placed this perl script in my cgi-bin/ folder. I'm hoping the !/user/ part is correct for dataflame.

#!/usr/local/bin/perl
[SNIPPED OUT MATTS COMMENTS]
# Define Variables #

$Display_Week_Day = '1';

$Display_Month = '1';

$Display_Month_Day = '1';

$Display_Year = '1';

$Display_Time = '0';

$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');


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) = (localtime)[0,1,2,3,4,5,6,8];

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_Week_Day != 0) {
print "$Week_Days[$Week_Day]";
if ($Display_Month != 0) {
print ", ";
}
}

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_Time_Zone != 0) {
print "$Time_Zone";
}

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

exit;
Thu 23/11/06 at 23:59
Regular
"Devil in disguise"
Posts: 3,151
Well, cant offer much assistance without seeing anything... Are you calling the cgi in the same manner as you've called other scripts you're using? Also check the error logs of your host, most cgi problems will appear in there (assuming you have access to them).
Thu 23/11/06 at 23:28
Regular
Posts: 19,415
Thanks Garin and cjh.

I had a quick look at the poll, nice, results were on the same page though. Which isnt bad just more complicated I would have though. And I'm having problems with more simple scripts it seems.

.

god I hate Matt, I can't even get the clock to work. I installed and 755 the pl page and put it in the cgi-bin folder, but my index page isnt displaying it. :/
Mon 20/11/06 at 14:07
Regular
"It goes so quickly"
Posts: 4,083
Machie:
"I think I'll stick with Perl instead of php."

Sorry I won't be able to help with anything Perl related, as I know nothing about it :)

As for the CSS columns, searching for 3 columns in CSS and 4 columns in CSS in Google brought up some examples quickly (some via www.glish.com/css/) and to be honest I thought you'd come across them as soon as you got Google'ing.
Sun 19/11/06 at 23:17
Regular
"Devil in disguise"
Posts: 3,151
Ok...

Perl Poll - http://www.cgi-world.com/pollit.html looks to do everything you want.

3 column css layouts - http://css-discuss.incutio.com/?page=ThreeColumnLayouts Plenty to choose from there. However if I remember what you've got already correctly, adding further columns shouldnt be anything more than adding the div and making it float left or right. If its not doing that then I'd suggest your widths are incorrect.

Banner rotation - http://www.getcruising.com/crypt/_banmat.html fairly straight forward and looks like it'll do what you want.
Sun 19/11/06 at 17:42
Regular
Posts: 19,415
:(

The designs aren't complete yet no, I still don't have a working poll. I thought it would be important to the sites design so I wanted to get it working before I finish anything. The 3+ column thing I wanted in the past, infact I did ask about it but I think it got ignored. So I felt stuck doing everything in 2 column divs all the time. Which was okay but not what I wanted.

You're right it's probably a bad idea to use so many different codes so I think I'll stick with Perl instead of php. I'm not comfortable with using bits of it when I dont want to use it all over my website.

All the things I need to get my site up and running are now listed in this thread. I dont need anything else, no forums, no image galleries, etc. Oh wait I do need to sort out a banner rotation script. Apart from that this is all I need.

So hopefully I can get all this done, then I can worry about drawing the title graphic (instead of using a temporary one) and painting the favicon (actually I did that yesterday). I already have over 400 pages of content just waiting to go up now.

"Joomla!
This site is temporarily unavailable.
Please notify the System Administrator"


I checked out the two sites you mentioned, but it didn't look very good when I got several errors :S So I think I'll pass.

The news section, the blog, etc that's all sorted. It's just the poll that's caused so much trouble and put me off the design for so long. Which is why I worked on the content instead, building that up and creating so many pages, lessons, articles and reviews.
Sun 19/11/06 at 16:04
Regular
"Devil in disguise"
Posts: 3,151
Machie, some advice if I may...

You clearly have great ambitions for your site and thats no bad thing but I cant help think your current course is going to leave with something unmanageable. You want blogs, news, polls and alsorts of other dynamic elements. The biggest challenge of all that though will be bringing all those elements together especially if you're using separate scripts from different sources/people. I'm beginning to think you'd be better advised just installing a CMS like Joomla or Drupal and devoting your time to learning how to create templates in it. Joomla/Drupal at least have modules for all the features you want.
If you're not keen on that route, then I'd suggest you put your dynamic elements to one side for the moment. Concentrate on getting the design finished, create some templates for all the different section of your site. Post them on here and get some advise on how best to create templates of what you've got which you can easily integrate different dynamic elements into. It could well be the biggest help you can get off these forums in my opinion.

Perhaps I have a false impression of what you've achieved so far. From reading your posts though, it seems like you're trying to achieve everything at once. When really you should finalise the design (and optimize the css etc.) then move onto the rest.
Sun 19/11/06 at 13:16
Regular
"It goes so quickly"
Posts: 4,083
No problem :) Just a shame they don't have a preview option here, it would save me looking like such a plank to begin with :)

Machie:
"My new deadline is the 18th December, though I'll try and get it up sooner."

2006 I hope :)

"As soon as I finish the title graphic I'll set up the coming soon page."

There you go, that is your challenge for the day :)

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Easy and free service!
I think it's fab that you provide an easy-to-follow service, and even better that it's free...!
Cerrie
My website looks tremendous!
Fantastic site, easy to follow, simple guides... impressed with whole package. My website looks tremendous. You don't need to be a rocket scientist to set this up, Freeola helps you step-by-step.
Susan

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.