Find the image size (width,height) odbic in combination with php
by Phil, June 19, 2008 06:54
1. I created a file imgarray.php containing this:<?php list($width, $height, $type, $attr) = getimagesize("$myimage"); echo $width,'-',$height; ?>
2. I created an odb file imgsize.odb with this:<!--SET myimage="yourpath/your_image.jpg" --> <!--SET aa = $httpget(xxxx://www.your_server/imgarray.php,myimage) --> <!--SET imagex = $split(aa,"-") --> <!--SET imagey = $aa$ --> <p> w=$imagex$<br> h=$imagey$ </p>
Execute imgsize.odb through ODBic in passing the variable 'myimage'. replace xxxx with something else ;-) and enjoy.
Name E-mail optional TopicMessage:
HTTP Link: Link text: