#!/usr/bin/php
<?php
require_once '../include/class.dialog.php';
$dialog = Dialog::factory('fileselect', array(
'backtitle' => 'File Select'
));
$dialog->setPath('/tmp')
->setWidth(100)
->setHeight(35);
do {
$file = $dialog->show();
} while (!file_exists($file));
system('clear');
var_dump($file);
|