| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| PHP date... | |
|---|---|
| Tweet Topic Started: Jan 21 2005, 04:24 PM (352 Views) | |
| Sipefree | Jan 21 2005, 04:24 PM Post #1 |
|
Moved to paid hosting.
![]() ![]() ![]() ![]() ![]()
|
I'm trying to make a script that will output different images depending on the time. the problem is, I don't know jack mullet about PHP and I need this made. basically, if the time is between 9:00 AM and 4:00 PM, then it diplays image b.png, in not, then defaults to image a.png If someone could point me in the right direction, that would be a great help! Thanks, Sipefree |
![]() |
|
| Ali-ZNS | Jan 21 2005, 06:00 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
First off, I suggest you read information about date() and time(). Perhaps even microtime() will be an interesting read for you. Anyway. To achieve the effect you're after try using localtime(). Hope that helps and if you need any clarifications don't hesitate to ask. Ali |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
6:42 PM Jul 11
|



![]](../../../../0/1/0/p601690/pipright.png)



6:42 PM Jul 11