Programming Nuances, PHP and JavaScript

Two little snippets, some simple things that seem to be forgotten when writing code.  First, a general example using PHP; have you ever found yourself writing a loop that looks something like this? $i = 0; while ($row = mysql_fetch_assoc($result) { // … // maybe something about $i % 2 to determine even-from-odd rows ++$i; […]

Wednesday, September 23rd, 2009

POST via cURL under NTLM Auth: Learn From My Pain

If you’ve been working with PHP in a professional capacity on Today’s Internet, you’ve probably run across one or two instances where you’ve had to use cURL. And, if you didn’t use cURL, at least seen where it could be useful. For instance, if allow_url_fopen is turned off. In fact, most of us have reached […]

Saturday, July 25th, 2009