Re: Weird/strange issue with PHP file
"Jacob Kruger" <[email protected]>
| Newsgroups | gmane.comp.php.windows |
|---|---|
| Message-ID | <E0B37939B0DC41598F7BD0DE63802F86@jakesPC> |
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" <[email protected]> To: <[email protected]> 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 > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php