Help with some dates


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

I have a list of dates in an array:

$mondays = array(
strtotime("October 12, 2009"),
strtotime("October 19, 2009"),
strtotime("October 26, 2009"),
strtotime("November 2, 2009"),
strtotime("November 9, 2009"),
strtotime("November 16, 2009")
);


It is an array of the next few mondays. I am wondering how I could figure out what the next monday in the array is depending on the current time, using time();

I cannot use strtotime("next monday") or strtotime("+1 monday") because the server I am working on is using a very old version of PHP (4.3.10-22) and it has a bug when I use strtotime("next monday");...I am also not able to upgrade the version of PHP.

No comments posted yet

Your Answer:

Login to answer
286 Like 16 Dislike
Previous forums Next forums
Other forums

disable all input buttons
Hello Friends,

suppose i do have a file ( file.php ) has a submit button

Code: [Sele

problems with search form numerical "between" sending by php
I am trying to display the results of a search, on a sql database, on a web page. I set up html &quo

Accessing element of object array
Hello

My object looks like this:


Array ( [0] => User Object ( [id] =>

SAP Treasury - Commodities
We are running SAP ECC 6.0 with Treasury Activated.
EA-FIN is also activated (SFW5).

Pls help with PHP
Pls can anyone direct me on how to create a user account for a customer. For example i want know if

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

list files from folder, only one for each date
I have many files in a folder and wish to only list one of each date

these are the file names

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

Image upload - determine folder
I have an upload script that may be accessed from different directories. Problem is, the script is m

Not connecting to DB using ruby, error:env.c:257:in oci8lib.so: ORA-12154:
Hi All,

I am trying to connect to the database server from the client server using ruby and f

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