Categories

PHP and GTK example

<?php       class GUI extends GtkWindow {           /*          * Class constructor          *          *    @param int $width        window width          *    @param int $height        window height          *    @param [...]

List images in a folder

// the directory, where your images are stored $imgdir = ‘/images/’;   // list of filetypes you $allowed_types = array(‘png’,’jpg’,’jpeg’,’gif’); want to show   $dimg = opendir($imgdir); while($imgfile = readdir($dimg)) { [...]

Latest weather using PHP

<?php    $xml = simplexml_load_file(‘http://www.google.com/ig/api?weather=ADDRESS’);   $information = $xml->xpath("/xml_api_reply/weather/current_conditions/condition");   echo $information[0]->attributes(); ?>

Bookmark It