home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Quick PHP question

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1834
Discussions: 200,950, Posts: 2,379,443, Members: 246,312
Old January 20th, 2003, 09:11 PM   Digg it!   #1 (permalink)
Ultimate Member
 
golfcart's Avatar
 
Join Date: Oct 2001
Location: Michigan
Posts: 1,769
Quick PHP question

I need to report the current time on the server offset by +1 hour.
For example,
PHP Code:
<? echo "$time[0]"?>
displays 7:00PM and I need the code to make it display 8:00PM.

Anybody have any ideas?
golfcart is offline   Reply With Quote
Old January 20th, 2003, 09:20 PM     #2 (permalink)
Ultimate Member
 
willy_ph's Avatar
 
Join Date: Oct 2001
Location: Trent University
Posts: 2,414
have you tried time[0+1]?

I don't know if it would work. It seems kinda logical though.
willy_ph is offline   Reply With Quote
Old January 20th, 2003, 09:21 PM     #3 (permalink)
Ultimate Member
 
willy_ph's Avatar
 
Join Date: Oct 2001
Location: Trent University
Posts: 2,414
If that fails, check the php manual. You can get it online at php.net.
__________________
The difficulty is to try and teach the multitude that something can be true and untrue at the same time. -- Arthur Schopenhauer
willy_ph is offline   Reply With Quote
Old January 23rd, 2003, 03:57 PM     #4 (permalink)
Member
 
Clown's Avatar
 
Join Date: Jan 2002
Posts: 83
Change the variable of your $time to $time++
__________________
CLOWN
Clown is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
The disrespect of Obama by Russian .. (35)
Making Health Care Worse (177)
Is It Just Me? (2941)
Wireless Televisions. (12)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (7)
radeon x850xt platinum & shader.. (6)
Is the PSU I received dead? (12)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
windows vista security holes (9)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Internet Lost (2)
Point and Shoot Camera Suggestions. (4)
Regular Build (7)
Multiple Restarts Required at Boot (2)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Laptop with wireless problem. (2)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Asus P4G8X Mobo (6)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)


All times are GMT -4. The time now is 12:19 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28