package playne

imports "programmer"

Tag: php

  • PHP: for vs foreach

    So this week I was asked the question on which was quicker in PHP – A for loop or a foreach loop. It turns out that my assertion that they were both about the same performance was about right. Here are my test results jason@server:~/php$ php speedtest.php Starting test: Test for loop data length=4000000 Mem:…

  • WordPress, WP E-Commerce and the lack of ASYNC AJAX

    Now Normally the A in AJAX means Asynchronous, meaning you can have several requests going at once, so it was very confused as to why my AJAX wasn’t. My WordPress plugin is a long running import process and I decided to use AJAX so that I can provide timely feedback to the user as to…