Re: Weird/strange issue with PHP file

From: Date: Sun, 14 Oct 2012 08:42:29 +0000
Subject: Re: Weird/strange issue with PHP file
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-30962@lists.php.net to get a copy of this message
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@blueyonder.co.uk> To: <php-windows@lists.php.net> Sent: Sunday, October 14, 2012 7:33 AM Subject: Re: [PHP-WIN] 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


« previous php.windows (#30962) next »