Support Forums

Full Version: Mini PHP Project
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
http://theunknownnetwork.com/test.php

This is just a little project I'm working on, I should hopefully be developing it.
What's it gonna be?
Right now I just see my ip and a trollface
Look towards the bottom, the footer.
The "Current Time: 05:31:21 PM" is wrong for me
Haha that's awesome, I'm curious of how you got the time xD

Edit: Hm I might know a way but idk xDD
Time doesn't work for me either. This is pretty basic PHP but good job nevertheless. I'd just advise you to get a decent template set up.
(09-02-2011, 02:31 PM)Ace Wrote: [ -> ]The "Current Time: 05:31:21 PM" is wrong for me

The time, I didn't know how to set it so it displays the persons time zone of who's viewing it, instead everyone see's that one time zone.

(09-02-2011, 03:00 PM)Mark Zuckerberg Wrote: [ -> ]Haha that's awesome, I'm curious of how you got the time xD

Edit: Hm I might know a way but idk xDD

If you mean the PHP code it is this:

PHP Code:
<?php

$date 
date("h:i:s A"time());
echo 
$date;

?>


(09-02-2011, 03:01 PM)Fragma Wrote: [ -> ]Time doesn't work for me either. This is pretty basic PHP but good job nevertheless. I'd just advise you to get a decent template set up.

Read what I replied to Ace with, yeah I know it's basic PHP, I'm still learning. Smile. I may get a template setup, I take it you already saw the one I am working on?
Okay, so what's the point and what's your goal with this?
No point and No goal really, just somewhere to put what I learn, and trying to make it look good at the same time, organizing it.
Yeah but what's the outcome of it supposed to be? What are you trying to do with it?
Pages: 1 2 3