loop through

My gripe with Prototype - Evert Pot

Planet PHP  Tue, 01/11/2011 - 13:26

Many of you might already know this, but I wanted to point out why I think using the Prototype Javascript library is a bad idea.

The biggest problem is actually highlighted in it's name: it changes many of the prototypes of core javascript types.

You might have realized this before, when you tried to 'for(i in arr)' and came across many of the extra functions prototype added.

(and you should have realized at this point this wasn't the proper way to loop through an array anyway.).


 

Vanessa Vasile's Blog: Simple Way to Parse an x509 Certificate w...

PHPDeveloper.org  Thu, 11/04/2010 - 10:19

In a new post to her blog, Vanessa Vasile has a reminder about a built-in PHP function that can help quite a bit when you're working with SSL certificates - openssl_x509_parse.


 

NETTUTS.com: Quick Tip: Loop Through Folders with PHP's Glob()

PHPDeveloper.org  Tue, 04/27/2010 - 10:49

Sometimes when you're looking through the filesystem in your PHP application, you just need a quick and easy way to grab a file listing from a directly and move on.

Sure, you can use the usual opendir and readdir combo to loop through the files, but there's another function that might suit your needs better - glob.


 

Komunitasweb.com: Showing the weather with PHP and Google Weathe...

PHPDeveloper.org  Fri, 09/11/2009 - 08:47

On the Komunitasweb.com blog there's a recent post walking you through the steps to add the Google weather content to your site, complete with icons.


 

PHPro.org: Read Line From File (stream_get_line)

PHPDeveloper.org  Thu, 04/23/2009 - 08:36

The PHPro.org website has a quick new tutorial about a method (using streams) to get the information from a certain line of a file.