# Look what I made for my desktop!

**URL:** <https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628>\
**Category:** random\
**Created:** [July 24, 2003, 8:41pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628 "2003-07-24T20:41:59Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 2:15am UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/21 "2003-07-25T02:15:04Z")

</div>

I’m on XP Pro by the way…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 2:16am UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/22 "2003-07-25T02:16:38Z")

</div>

you have to have apache and php installed locally

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 2:17am UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/23 "2003-07-25T02:17:41Z")

</div>

[http://www.php.net/downloads.php](http://www.php.net/downloads.php)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 2:25am UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/24 "2003-07-25T02:25:52Z")

</div>

Thanks Sen and XXVIII…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 9:15am UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/25 "2003-07-25T09:15:21Z")

</div>

> \*Originally posted by [mdipi.com](http://mdipi.com) \*  
> \*\*so it is offa a server? or its just a .php file on your system with php installed? \*\*

It’s on aserver!  
I tried installing php on my comp but I couldn’t even get Apache installed so… no apache for me!

> That clock in the lower right corner isn’t good enough for you Syko?

Hehe… well I guess hovering over it to get the full date can be too much work

No it isn’t! You can never tell if the clock shows the right time but with php I can always be sure! And in addition it shows what what day of the week it is in numbers, what day of the year it is and what week of the year it is! Plus I can see the sconds as well! 🙂  
oh and mdipi was also right! 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 3:58pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/26 "2003-07-25T15:58:00Z")

</div>

If you use Windows XP and you double click the click in the corner you can choose to synchronize your clock with an internet time server 😉

Im not putting down your desktop, do what you want, if you find it easier than great, I think it is quite an interesting idea. It doesn’t bog down your computer at all?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 4:31pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/27 "2003-07-25T16:31:51Z")

</div>

i don’t think so! …well haven’t noticed yet!  
It’s a pain to make it in flash! Won’t work!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 4:50pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/28 "2003-07-25T16:50:54Z")

</div>

Clocks in Flash are easy… does it just not work with active desktops?

If thats so, then what about Javascript?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 4:57pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/29 "2003-07-25T16:57:06Z")

</div>

You can do that LIB. All you need to do is put the SWF in some HTML and rock-n-roll.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 4:57pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/30 "2003-07-25T16:57:10Z")

</div>

how did you get it offa the server onto yur dtop? ughh! lol. i gotta get up and go down to the PC to look around. this is still cool though. but i would want other things mostlikely instead. like what my cpu usage was, but you cant do that via PHP ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 5:03pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/31 "2003-07-25T17:03:21Z")

</div>

Ok, well I adapted one of my Flash clocks into Javascript if you wish to check it out…

```php
<DIV ID="clock"></DIV>
<SCRIPT LANGAUGE="JavaScript">
<!--
//function to get and print time
function updateTimeValue() {
	myTime = new Date();
	h = myTime.getHours();
	m = myTime.getMinutes();
	s = myTime.getSeconds();
	h == 12 || h == 0 ? hours=12 : (h%12)<10 ? hours="0"+(h%12) : hours=h%12;
	m<10 ? minutes="0"+m : minutes=m;
	s<10 ? seconds="0"+s : seconds=s;
	h<12 ? amPM="AM" : amPM="PM";
	document.getElementById("clock").innerHTML = hours+":"+minutes+":"+seconds+" "+amPM;
};
//run function when page loads
updateTimeValue();
//run function every 1000 milliseconds (1 second)
setInterval(updateTimeValue, 1000);
-->
</SCRIPT>

```

The div tag in the beginning is what will display the time, it is important you keep that ID at “clock” unless you change it in the script.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 5:40pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/32 "2003-07-25T17:40:42Z")

</div>

There is nothing wrong with the clock but I can’t get the time from a php file be displayed in Flash! Now it’s working… now it isn’t!.. wierd stuff!  
I can’t even if lost’s clock working! :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 5:46pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/33 "2003-07-25T17:46:25Z")

</div>

dag lost! thats a crazy script! how you do stuff like this i will never know! shesh i cant even read it lol. you are such a crazy scripter.

Syko i had that same problem when i was trying to mm ake my PHP hit counter in flash. it would sometimes display and other times it wouldnt. I think the PHP could be better in flash…maybe for MX II

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 5:49pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/34 "2003-07-25T17:49:33Z")

</div>

I think it’s just that Flash and PHP don’t fit together!

and lost - you script in all the languages doncha? =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 6:59pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/35 "2003-07-25T18:59:57Z")

</div>

but syko what i am saying is that it should, imagine if they did! there would be nop limits! i think that it should be a lot like XML and flash. but i dont know…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 7:24pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/36 "2003-07-25T19:24:59Z")

</div>

Syko: Do you HAVE to do this in PHP??? Flash has the ability to handle time as well (the same way Javascript does).

And no, I don’t code in all languages, although I wish I did…hehe. Only HTML, CSS, Javascript, very little DHTML, and just now getting into PHP/mySQL.

Mdipi: My script isn’t that hard if you know the tertiary operator ( statement ? do this if true : else do this if false ) and modulo (number1%number2, gets the remainded of number1 divided by number2)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 7:51pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/37 "2003-07-25T19:51:14Z")

</div>

I was doing this wif php because flash shows me the same time I have in the lower right corner which can be wrong at any time but i want it to show internet time!  
But if you say that it can be changed to show the internet time then I can use that too and make the clock in flash!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 7:53pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/38 "2003-07-25T19:53:28Z")

</div>

> \*Originally posted by lostinbeta \*  
> \*\*Syko: Do you HAVE to do this in PHP??? Flash has the ability to handle time as well (the same way Javascript does).

And no, I don’t code in all languages, although I wish I did…hehe. Only HTML, CSS, Javascript, very little DHTML, and just now getting into PHP/mySQL.

Mdipi: My script isn’t that hard if you know the tertiary operator ( statement ? do this if true : else do this if false ) and modulo (number1%number2, gets the remainded of number1 divided by number2) \*\*

DHTML is like Javascript… It is just like, CSS + Javascript + HTML. 😉

I \<3 Javascript!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 7:55pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/39 "2003-07-25T19:55:52Z")

</div>

yes DHTML is a combination of CSS, Javascript, and HTML, but coding crossbrowser in it is like taking an ax to your own head.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 7:59pm UTC](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628/40 "2003-07-25T19:59:05Z")

</div>

pfft, then do what I do. Put an ASP detection script on your site that says if your not using IE then go download it.

[Previous page](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628.md?page=1)

[Next page](https://forum.kirupa.com/t/look-what-i-made-for-my-desktop/26628.md?page=3)
