
March 19th, 2000, 02:51 AM
|
|
Contributing User
|
|
Join Date: Jan 2000
Location: Sweden
Posts: 384
Time spent in forums: 1 Day 20 h 39 m 54 sec
Reputation Power: 14
|
|
|
IT WORKS!!! Thank you VERY much!!! :-)
I was using this syntax:
<?php
// notice these are backticks (`), not quotes (')
// the file function is called and fed the location of the gif file
$output = `file /full/path/to/gif`;
// the $output string contains lots of info, so we split it up by the ,'s.
$vals = split( ",",$output);
// we display a trimmed version of the third part, as taht contains the dimensions.
// the [2] part is because array indexes start at 0, not 1
echo trim($vals[2]);
?>
Best Regards,
Christoffer :-D
|