Tag Archives: code

Google Open Source Code Projects

PHP PEAR php_beautifier

You can even use PHP PEAR php_beautifier without Apache !

Just
# aptitude install php-pear
# pear install php_beautifier
# pear install channel://pear.php.net/php_beautifier-0.1.13

Then
$ php_beautifier myfile.php

Read and post comments | Send to a friend

flickr API using phpflickr class

Flickr API using phpflickr class


/* flickr api using phpflickr class */

include 'flickrconsts.php' ;
include 'phpFlickr.php' ;

$f = new phpFlickr( FLK_API_KEY, FLK_SECRET, false );

$url = $f -> urls_getUserPhotos('8764442@N07') ;
echo $f -> getErrorCode() . $f ->getErrorMsg() ;
echo $url ;

$url = $f -> people_getPublicPhotos('8764442@N07','geo,tags,machine_tags', 5) ;
echo $f -> getErrorCode() . $f ->getErrorMsg() ;
print_r( $url ) ;

Read and post comments | Send to a friend

VOX how to post HTML & XML code samples

You can post code samples in your VOX blog by wrapping it in

 and 

PS Use < and > instead of [ and ]

PPS If your HTML or XML includes < and > then convert them to [ and ] before pasting it into VOX
 

$ cat myfile.xml | tr "<>" "[]" > myfile.vox

Read and post comments | Send to a friend