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.
Link coming soon =)
> Okay next I want to use this script to display the time ane date
> "00:00AM/PM on Monday" but I want to be able to add or
> subtract hours. This is for the time zones. So Singapore is 8
> hours ahead so it would have to +8 in somewhere, and for New
> York -5. Could I use this script? Would it be easy to do that?
The script looks like it'll do it easily enough as it already has support for time zones. Just a matter of rearranging the output as you want it I guess.
> and if I have 200 pages with this does that mean I would have to
> have 200 perl scripts or could I do something in the code that
> calls it to the webpage?
If you have 200 pages, theres nothing to stop all of them calling the same script. So no, you dont need 200 copies of the perl script. :)
Okay next I want to use this script to display the time ane date "00:00AM/PM on Monday" but I want to be able to add or subtract hours. This is for the time zones. So Singapore is 8 hours ahead so it would have to +8 in somewhere, and for New York -5. Could I use this script? Would it be easy to do that? and if I have 200 pages with this does that mean I would have to have 200 perl scripts or could I do something in the code that calls it to the webpage?
It's my perl test for the moment :) I think my robot txt is still telling the search engines to go away.
> Ok, somewhat easier if the script is working.
> The page thats got the SSI on it, make sure the file extension
> is shtml instead of just html.
It does look like it's 'html' and not 'shtml' - well that's Machie's current home page with the clock code in it anyway - which would explain why the code isn't being called.
The page thats got the SSI on it, make sure the file extension is shtml instead of just html.
The script is working right? Because it worked when I went directly, it's just this code on the index page isnt doing it's job :/
There are other scripts in the cgi-bin but not sure what they are. randhtml.cgi entropybanner.cgi cgiemail. I wonder if these are just default files.
Maybe I'll create something using the cPanel X. I'll try the counter.
Forget the SSI for the moment, try to get the script running by calling it directly from a browser, ie http://www.mydomain.com/cgi-bin/textclock.cgi
And if it doesnt work, find the corresponding entry(s) in the error log and check its still the premature end of script headers one.
Out of ideas at the moment though. I've taken the code and tried it myself, it definitely works which suggests its some configuration issue. I'm assuming other cgi scripts run from the cgi-bin ok? You say you've chmod'ed the file to 755 so there isnt much left to check.
> hmm perhaps I should DF if #!/usr/local/bin/perl is the correct
> path,
If the dataflame server you're on has cpanel installed, you can find the correct path to perl under General Server Information. On mine its /usr/bin/perl
> and the bit. Is it suppose to call up the file as a .cgi file and not a .pl file?