Hi all,
Was wondering whether the fact that serialize() casts numeric string
keys to integers, is a bug, intended behaviour, or just something that
is minor enough not to have bothered anyone yet?
'string key'); // '1' will be casted to 1
$arr2 = array(1=>'integer key');
$arr1_uns = unserial
On 11-11-2012 22:47, Jim Giner wrote:
Besides the minor fact that the code has syntax errors, the problem with
it is your if is backwrads. The facts are: today is less than end date,
so your if should show "The show has ended" since you are asking if
today IS GREATER than the end date.
BTW - th
BTW - this is the code I used to test out your process:
$showenddate)
echo "The date of the show has not yet arrived";
else
echo "The show has ended";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 11/11/2012 1:30 PM, Terry Ally (Gmail) wrote:
Hi all,
I am having a problem with comparing time. I am using the following:
$todaydate = date("D, M jS, Y g:i:s a");
$showenddate = date("D, M jS, Y g:i:s a",
strtotime($showsRecord['end_date']));
if ($todaydate > $showenddate):
echo "The
On 11 Nov 2012, at 19:24, "Terry Ally (Gmail)" wrote:
> I reversed it as you suggested and every future show is displaying as having
> ended.
In that case the code you're showing us is not the code you're running, because
that's the obvious error in test.php.
-Stuart
--
Stuart Dallas
3ft9 L
Stuart,
I reversed it as you suggested and every future show is displaying as
having ended.
Terry
On 11 November 2012 19:11, Stuart Dallas wrote:
> Please include the list when replying.
>
> On 11 Nov 2012, at 19:08, "Terry Ally (Gmail)"
> wrote:
>
> > What I want is the reverse.
> >
> > I wa
Please include the list when replying.
On 11 Nov 2012, at 19:08, "Terry Ally (Gmail)" wrote:
> What I want is the reverse.
>
> I want that if people attempt to access the show page after the show has
> ended that it triggers an error which takes it to another page. The actual
> conditional st
On 11 Nov 2012, at 19:00, "Terry Ally (Gmail)" wrote:
> Hi Shiplu and Stuart,
>
> Comparing timestamps was my first option. I've reinstated it. Have a look
> at http://www.lakesidesurrey.co.uk/test.php (show_source included) and you
> will see that PHP is still outputting the wrong thing.
>
> I
Hi Shiplu and Stuart,
Comparing timestamps was my first option. I've reinstated it. Have a look
at http://www.lakesidesurrey.co.uk/test.php (show_source included) and you
will see that PHP is still outputting the wrong thing.
I just can't figure out what's wrong.
Terry
On 11 November 2012 18:48
Its rather better to auto using a apikey. You'll provide this apikey on the
website where user registers their application.
On Mon, Nov 12, 2012 at 12:45 AM, Stuart Dallas wrote:
> On 10 Nov 2012, at 23:28, Adam Tong wrote:
>
> > I am developing a REST API. I found the Slim micro-framework use
On 11 Nov 2012, at 18:30, "Terry Ally (Gmail)" wrote:
> I am having a problem with comparing time. I am using the following:
>
> $todaydate = date("D, M jS, Y g:i:s a");
> $showenddate = date("D, M jS, Y g:i:s a",
> strtotime($showsRecord['end_date']));
The date function returns a string.
> if
You can always use timestamp which is integer.
$todaydate = time();
$showenddate = strtotime($showsRecord['end_date']);
On Mon, Nov 12, 2012 at 12:30 AM, Terry Ally (Gmail) wrote:
> Hi all,
>
> I am having a problem with comparing time. I am using the following:
>
> $todaydate = date("D, M jS,
On 10 Nov 2012, at 23:28, Adam Tong wrote:
> I am developing a REST API. I found the Slim micro-framework usefull.
> I need authentication of course, and I see that Slim does not provide
> authentication for Rest. Is there any lightweight alternative to
> manually implementing http authentication
Hi all,
I've been chasing around a memory allocation error for some time and
can't figure it out. It is somewhat random - I can run the script 3
times and then it will happen, or sometimes the first time.
It happens at the very end of a script, actually after the script has
finished running.
14 matches
Mail list logo