Re: Weird/strange issue with PHP file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks

I might implement error logging more carefully later on, but, for now, this
is more of me playing around with certain aspects/techniques, and, you'll
see in my other message that figured out that if I split that functionality
into two lines, it seemed to work alright, and since don't seem to be able
to get my primary combination server, WAMP, on this machine to make use of
slightly older versions of PHP closer to the live server's version, did
check that the one XAMPP portable combo have here is in fact almost the same
version of PHP as my live server, so have been sort of double checking
pieces of script like this by first running them in it, before then
uploading them.

Aside from all of this, only other issue with live server is since I'm sort
of piggybacking on a friend's account/config, I don't really have direct
access to the normal, built-in server logs, but anyway.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Niel Archer" <spam-free@xxxxxxxxxxxxxxxx>
To: <php-windows@xxxxxxxxxxxxx>
Sent: Sunday, October 14, 2012 7:33 AM
Subject: Re:  Weird/strange issue with PHP file


Hi

$iIndex = array_flip($this->arPlayers)[$sPlayer];

This is array dereferencing, which was added with PHP 5.4 so it will
cause an error on previous versions.

see example 7 at http://php.net/manual/en/language.types.array.php

As to why it hangs, for an excessive time, on your productions server. I
suggest checking the error logs for details. You do write errors to a
log, don't you?  ;-)

--
Niel Archer


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux