[SOLVED] help needed not coding settings i think

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sirrob01
Forum Newbie
Posts: 5
Joined: Sun Mar 16, 2003 9:56 pm

[SOLVED] help needed not coding settings i think

Post 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
sirrob01
Forum Newbie
Posts: 5
Joined: Sun Mar 16, 2003 9:56 pm

Post by sirrob01 »

nm fixed it

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

incase anyone else ever has this prob.
Post Reply