Archive for November, 2009

php/python/perl read directory

Posted under Article, PHP, Perl, Python on Monday, 2 November 2009 by Jack
PHP Code: [code lang="php"] function process_files( path ) {     if( is_dir( $path ) )     {          if ( $dh = opendir( $path ) )          {             while( ( $fname = readdir( $dh ) ) !== false...
php/python/perl read directory

PHP Function: register_shutdown_function()

Posted under Article, Development, Featured, PHP on Monday, 2 November 2009 by Jack
Since i’ve started programming in PHP i’ve found that there are some very interesting and useful functions native to the language that are buried deep in the very extensive PHP documentation. Sometimes you want to do something with your code and you end up writing lines and lines of elaborate...
PHP Function: register_shutdown_function()