Page 1 of 1

[SOLVED] help needed not coding settings i think

Posted: Sun Mar 14, 2004 9:33 pm
by sirrob01
recently installed php4 and apache2 and mysql onto my computer (yes win2k)

was trying to write a few simple codes using getimagesize on my computer the php dosent seem to eb able to use a url as a source just a local file but if i upload it to my web space it works as id expect help any ideas?

eg on my pc

Code: Select all

<?php $imgsz = getimagesize("http://www.somewebsite.com/image.gif"); 
echo "width= " . $imgsz&#1111;0] . "<br>" . "height= " . $imgsz&#1111;1] . "<br>" . "type= " . $imgsz&#1111;2] . "<br>" . "img tags= " . $imgsz&#1111;3]; ?>
produces a nice list of width= height= etc with no numbers

if I upload it to my webspace it works fine and i get values....

funnlly enough if I specifiy a local file ie c:\dir\dir\image.gif it works
any ideas here
thanks

Posted: Sun Mar 14, 2004 10:01 pm
by sirrob01
nm fixed it

dont forget to open your port 80 on ur firewall :)

incase anyone else ever has this prob.