Return to Snippet

Revision: 4755
at January 19, 2008 12:27 by rizwan


Initial Code
<?php

$dttime = date('Y-m-d H:i:s');
$label1 = "The date is ". $dttime;

function updatedate($button)
	{
		$button->date('Y-m-d H:i:s');
		return $this;
	}

	
$win = new GtkWindow();
$button = new GtkButton();
$button->$label1;

$button->connect('clicked', 'updatedate');

$win->add($button);
$win->connect_simple('destroy', array('Gtk', 'main_quit'));
$win->show_all();

gtk::main();

?>

Initial URL
http://rizwan.co.in/blog

Initial Description

                                

Initial Title
Displaying date on a client side window using PHP-GTK

Initial Tags

                                

Initial Language
PHP