[Need Help] php timing issues


Posted on 16th Feb 2014 07:03 pm by admin

I don't know what is going wrong. I need some help with being able to set an image at 9:00am Colorado time if my server is in California and it would be 8:00am. I tried to echo the image below, but it's not working.

Code: [Select]<?php
$hours_offset = -1; // Server time offset
Did you know?Explore Trending and Topic pages for more stories like this.
function currentImage(){
global $hours_offset;
$hour = date("H",(time()-(3600*$hours_offset)));
$imagePath = "img/";
if (date(H) < 09 || date(H) > 21) {
return $imagePath."".date(D)."/".$hour.".png";
}
?>
No comments posted yet

Your Answer:

Login to answer
178 Like 39 Dislike
Previous forums Next forums
Other forums

how to insert value
I am having file bookissueadd.php..... in which i am having tag

<td height="21&q

url- go to webpage
i have an input text field and submit button.

how do i make the url entered into the textfiel

Setting condidtions for an input box
Hi all,

I would like to set a condition in a txt box that says the number a user enters has t

Inserting a variable in a link
I have this code that I want to insert for my own variable but I have no idea how. This is what I wa

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code:

'grab_files', multiple extension?
hey guys,

can anyone suggest a way to make to following line of code look for files with more

Change Web page language
i doing this thing first time but i dont find any suitable solution for it. On the demand of user. I

Month String to Numeric?
Hi guys,

Given a month as a string, is there a simple way to find the numeric representation

redirect standard error and assert (how to?)
How do you redirect standard error and assert?

---

(Why? I am creating an web app and

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash