I found some difficulties creating my RSS 2.0 feed with enclosures.
As I mentioned before, I am adapting a version of:
http://www.cadenhead.org/workbench/gems/rss_2_php_script.txt
to which I add:
<enclosure url="$url_of_the_pic" length="$size_of_the_pic" type="image/jpeg"/>
All works fine, except that in order to get the value for the lenght I am trying to do:
$size_of_the_pic=getimagesize(http://url);
But what I get back is not a number with the size of the jpg. Instead, I get back:
Array
Anybody knows what happens ??
If I do echos I get:
echo $size_of_the_pic
echo $size_of_the_pic[0]
echo $size_of_the_pic[1]
I get:
Array
480
560
So I can get the height and width, but not the size !!!
Help please, anybody knows why I get "Array" instead of the size ?