Skip to content

Commit

Permalink
Started on it
Browse files Browse the repository at this point in the history
  • Loading branch information
indranil committed Dec 27, 2008
1 parent 6579111 commit ad685ea
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
<?php

/*
Itsy Bitsy Gallery
------------------
(c) 2008 Indranil Dasgupta.
Released under the MIT license.
http://www.opensource.org/licenses/mit-license.php
*/
$ts = microtime(true);

/**
* Itsy Bitsy Gallery
*
* @author Indranil Dasgupta
* @version 0.4.2
* @copyright Indranil Dasgupta, 27 December, 2008
* @package default
**/

if(version_compare(PHP_VERSION,'5','<'))
die('Sorry, we require PHP 5+ to properly function!');


// Let's see where we are.
define('PATH', @realpath(dirname('__FILE__')));

if($dir_handle = scandir(PATH)) {
echo '<pre>';
print_r($dir_handle);
echo '</pre>';



} else {
die('Invalid directory. Pain!');
}

echo '<br>';
echo microtime(true) - $ts;

?>

0 comments on commit ad685ea

Please sign in to comment.