Add to Google

World Time Wap Page - Page that tells many times ;-)

Pages: 1, 2, 3
free web hosting

Read Latest Entries..: (Post #20) by BuffaloHELP on Sep 10 2006, 09:29 AM. (Line Breaks Removed)
Stay within the subject. This is not your forum and topic to wage a war with each other.Settle your disputes some place else! Until you learn to grow up and play nice with everyone this topic is closed.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

World Time Wap Page - Page that tells many times ;-)

wappy
Here is a page created for wap that tells many different times around the world....
CODE

<?php
header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo "<!-- wappyTIME v1.00 -->\n";
echo "<!-- Copyright (C) wappyCULT 2006-2007 -->\n";

echo "<wml>";
echo "<card title=\"wappyTIME\">";
echo "<p>\n";
echo "<small>\n";

global $timezone;
        $valandos=date("H")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "London - $data<br/>";
$timezone=+1;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Berlin - $data<br/>";

$timezone=+2;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Kiew - $data<br/>";

$timezone=+3;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Moscow - $data<br/>";

$timezone=+7;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Hong Kong - $data<br/>";

$timezone=+8;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Tokio - $data<br/>";

$timezone=+9;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Sydney - $data<br/>";

$timezone=+19;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "New York - $data<br/>";

$timezone=-10;
global $timezone;
        $valandos=date("h")+$timezone;
        if ($valandos>23) $valandos=$valandos-24;
        $data=date("".$valandos.":i");
        echo "Alaska/Hawaii - $data<br/>";

echo "---<br/><a href=\"index.php\">wappyCULT</a><br/>---<br/>© wappyTIME 2006-2007";

echo "</small>\n";
echo "</p>";
echo "</card>";
echo "</wml>";
?>

 

 

 


Reply

dj.dance
this one is better

CODE

<?php
header("Content-type: text/vnd.wap.wml");
header("display_errors=0");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">";
echo "<!-- eat *BLEEP* mother*BLEEP*ers -->\n";

$New_Time = time() + (0 * 60 * 60);
$time=date("H:i",$New_Time);
echo "<wml>";
?>
<card id="card1" title="World time">
<p align="center">
<small>
<b>World Wide Time</b><br/>
<?
$gerNew_Time = time() + (0 * 60 * 60);
$gertime=date("H:i",$gerNew_Time);
echo "<br/>Berlin, Paris, Rome, Johhanesburg: $gertime";
$helNew_Time = time() + (1 * 60 * 60);
$heltime=date("H:i",$helNew_Time);
echo "<br/>Helsinki, Ankara, Capetown: $heltime";
$mosNew_Time = time() + (2 * 60 * 60);
$mostime=date("H:i",$mosNew_Time);
echo "<br/>Moscow, St. Petersburg, Baghdad: $mostime";
$banNew_Time = time() + (6 * 60 * 60);
$bantime=date("H:i",$banNew_Time);
echo "<br/>Bangkok, Jakarta: $bantime";
$bjinNew_Time = time() + (7 * 60 * 60);
$bjintime=date("H:i",$bjinNew_Time);
echo "<br/>Beijing: $bjintime";
$tokNew_Time = time() + (8 * 60 * 60);
$toktime=date("H:i",$tokNew_Time);
echo "<br/>Tokyo, Seoul: $toktime";
$sydNew_Time = time() + (9 * 60 * 60);
$sydtime=date("H:i",$sydNew_Time);
echo "<br/>Sydney: $sydtime";
$welNew_Time = time() + (11 * 60 * 60);
$weltime=date("H:i",$welNew_Time);
echo "<br/>Wellington, Auckland: $weltime";
$alsNew_Time = time() + (14 * 60 * 60);
$alstime=date("H:i",$alsNew_Time);
echo "<br/>Alaska: $alstime";
$seaNew_Time = time() + (15 * 60 * 60);
$seatime=date("H:i",$seaNew_Time);
echo "<br/>Seattle, San Fransisco, LA: $seatime";
$slcNew_Time = time() + (16 * 60 * 60);
$slctime=date("H:i",$slcNew_Time);
echo "<br/>SaltLake City, Phoenix, LA: $slctime";
$chicNew_Time = time() + (17 * 60 * 60);
$chictime=date("H:i",$chicNew_Time);
echo "<br/>Chicago, Dallas, Mexico LA: $chictime";
$nycNew_Time = time() + (18 * 60 * 60);
$nyctime=date("H:i",$nycNew_Time);
echo "<br/>New York, Miami, Quebec: $nyctime";
$bNew_Time = time() + (20 * 60 * 60);
$btime=date("H:i",$bNew_Time);
echo "<br/>Beunos Aires, Brasilia: $btime";
$hereNew_Time = time() + (23 * 60 * 60);
$heretime=date("H:i",$hereNew_Time);
echo "<br/>London, Dublin, Lisbon: $heretime";

echo "<br/>";


?>
</small>
</p>
</card>
</wml>


biggrin.gif

 

 

 


Reply

wappy
Very nice, i like the extra times but think its a little clutted on smaller phones ;-)

Reply

apurva
according to me dj has posted the better one..
btw are u the same one of neocult.com? ben?

Reply

juice
Wappy's script is a bit easier on the eyes and easier to change, thanx for the script wappy smile.gif

Reply

wappy
no problem juice / and no im not ben from that site im chris from wappyCULT i found my neo cult logo on google image search. / yes dj.dance would post a better one if you look at it its my one updated. Dj.dance is my little stalker. Has hacked a few of my previous sites and goes round following me copying/and trying to out do my work all the time. You will notice i didn't bite at any of this here so he went away. And as juice says it looks messy, take a look with your mobile not a pc. Screen layout and fitting is very important when working with wap sites. My standard is to make sure it looks tidy on a series 40 nokia and it will look fine then on most phones. To me it looks like my little friend used a bigger nokia s60 screen as standard resulting in it looking messy on many phones ok :-)
---
infact i will tell you who wrote it first: toddy (a good friend) from toddywap.net (wap) wrote it for me a long time ago as back then it confused me.

Reply

toddy
Lol ye I wrote it, but I wrote it when on PC so hard to get layout, but it was just to give the general idea of the code!

Reply

juice
QUOTE
Parse error: syntax error, unexpected T_VARIABLE in /public_html/time.php on line 13

I don't know whats going on? huh.gif

Reply

FirefoxRocks
Pretty nice WAP. I think it will be too cluttered on a cell phone to read the data. By the way, I don't have a cell phone smile.gif

Reply

juice
It would be nice if some one would help with this world time page because I realy prefer wappy's one to dj's. So please wont some one help? blink.gif

Reply

Latest Entries

BuffaloHELP
Stay within the subject. This is not your forum and topic to wage a war with each other.

Settle your disputes some place else! Until you learn to grow up and play nice with everyone this topic is closed.

Reply

wappy
ok well maybe your not the guy but look in my ban list on cult.trap17.com and the fact i banned your nickname the same day or day before you registered here is a bit strange eh lol. I don't use any of your code or your script. Also i don't know about anyone stealing your code and to be honest don't know why anyone would bother, i use php not cgi, and have no interest weather you made that logo or not its a temporary logo i found on google that i use for my site, it will be replace when i choose the winner of my logo making competition on my wap site. Anyway i would like to remind you this is a php forum. Not for posting sly comments, arguing, or discussing cgi scripts. And if you are the real owner of omnicult tell me what was your last web script release cos they still make web scripts eh? Anyway Boo Hoo tongue.gif

Reply

NeoCult
I am me, and the coder, email me at my domain if you like, aint ever used your site????? the newcult image in your sig i made years ago also, for a site called newcult funnily enough.... unlike you i have proof to back up all i say

Reply

wappy
what are you talking about? None of us use that rubbish cgi script or any of your silly images. We know who coded it it says in the script and correct me if im wrong but your not that guy your the guy i banned for free posting etc on my forums and think you will try to annoy me here? Well its not going to work. Stay out of my posts unless your going to stay on topic and drop your childish attitude. Sorry if your ban upset you lol but i polity asked you twice to stop posting rubbish at my site. Boo Hoo tongue.gif

Reply

NeoCult
Just wanna say that the ones using my images and stealing the code etc etc is why i took it all ofline ages ago, the problem is all the "code thiefs etc"

the new coding ive wrote is currently encrypted and no one will ever get it through all the previous thefts which is a shame as it is now awesome, i wont like where it either, as one said here he "Hacks" and "steals" the code, well truth is they cant hack sh*t and from the code ive seen its a mess of other peoples, the words "Learn to code" springs to mind

And yeah its me who coded it back in the day, no one else, not one of these people claiming they did but me....

Anyone want a copy of the old coding from omnicult.com and neocult.com gimme a shout.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Pages: 1, 2, 3
Recent Queries:-
  1. neocult - 43.08 hr back. (1)
  2. www.nicewap.com - 44.03 hr back. (1)
  3. the time wap - 56.70 hr back. (1)
  4. worldtime html script - 84.96 hr back. (1)
  5. time and date wml code - 289.59 hr back. (1)
  6. wap world times - 486.74 hr back. (1)
  7. parse error: syntax error, unexpected t_variable in *.php on line * - 489.12 hr back. (1)
  8. world times wap - 579.67 hr back. (1)
  9. date and time on wap page - 596.77 hr back. (1)
  10. wap time - 351.46 hr back. (2)
  11. world, time, wap, page, page, tells, times more:xisto - 683.65 hr back. (1)
  12. world time wap - 652.37 hr back. (2)
  13. wap world - 686.70 hr back. (1)
  14. slctime - 241.95 hr back. (3)
Similar Topics

Keywords : world, time, wap, page, page, tells, times

  1. Mysql Error...i'm Getting Upset !
    i tried 4 times but nothing..help plz!!! (3)





      Looking for world, time, wap, page, page, tells, times






*SIMILAR VIDEOS*
Searching Video's for world, time, wap, page, page, tells, times

*MORE FROM TRAP17.COM*
advertisement



World Time Wap Page - Page that tells many times ;-)