Hi, I am trying to find out more about $_SERVER['DOCUMENT_ROOT'] for example:
<?php
$image = $_SERVER['DOCUMENT_ROOT'].'/images/Council.jpg';
$imageinfo = GetimageSize($image);
echo "$imageinfo[1]<br>";print_r($imageinfo);
?>
Will produce something like:
which is great for finding out information about an image, but when I look up the information on php.net all I get is:300
Array ( [0] => 400 [1] => 300 [2] => 3 [3] => width="400" height="300" [bits] => 8 [mime] => image/png )
which just doesn't tell me much.The document root directory under which the current script is executing, as defined in the server's configuration file.
any idea on how or where I can find out more? Most of the results are easy enough to figure out, for example:
[0] = image height
[1] = image width
[2] = ?
[3] = width and height together in a readable format
[bits] = image color depth. (I think)
[mime] = file type



Reply With Quote
Bookmarks