summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Moor <tom.moor@gmail.com>2012-06-11 19:41:42 +0800
committerTom Moor <tom.moor@gmail.com>2012-06-11 19:41:42 +0800
commit72f1ff16fb08cdd3f8c80252d13c22ce35e1007f (patch)
tree6bfa754f50bef7de12e72e80a655f0c9d75ed463
parent927d321a4e544800b98e52d9a10f254be23266cb (diff)
downloadfastimage-72f1ff16fb08cdd3f8c80252d13c22ce35e1007f.zip
fastimage-72f1ff16fb08cdd3f8c80252d13c22ce35e1007f.tar.gz
fastimage-72f1ff16fb08cdd3f8c80252d13c22ce35e1007f.tar.bz2
Fixed example to account for non zero indexes.
-rw-r--r--examples/index.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/index.php b/examples/index.php
index ebfeba4..22df353 100644
--- a/examples/index.php
+++ b/examples/index.php
@@ -8,10 +8,12 @@ echo "\n\n";
$time = microtime(true);
$image = new FastImage($uri);
-$size = $image->getSize();
-echo "Width: ". $size[0] . "px Height: ". $size[1] . "px in " . (microtime(true)-$time) . " seconds \n";
+list($width, $height) = $image->getSize();
+echo "FastImage: \n";
+echo "Width: ". $width . "px Height: ". $height . "px in " . (microtime(true)-$time) . " seconds \n";
$time = microtime(true);
-$size = getimagesize($uri);
-echo "Width: ". $size[0] . "px Height: ". $size[1] . "px in " . (microtime(true)-$time) . " seconds \n";
+list($width, $height) = getimagesize($uri);
+echo "getimagesize: \n";
+echo "Width: ". $width . "px Height: ". $height . "px in " . (microtime(true)-$time) . " seconds \n";
exit; \ No newline at end of file