CodeIgniter Forums
getimagesize - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: getimagesize (/showthread.php?tid=23700)



getimagesize - El Forum - 10-19-2009

[eluser]georgerobbo[/eluser]
I am having trouble using the PHP function getimagesize. This is the error I get.

Quote:A PHP Error was encountered
Severity: Warning
Message: getimagesize(http://georgerobbo.dyndns.org/yellowdogyellow/public/uploads/thesongofthesirens.jpg) [function.getimagesize]: failed to open stream: No route to host
Filename: views/single.php
Line Number: 7

Code:
<?php $span = base_url() . "public/uploads/" . $a['filename'] . ".jpg"; $span = getimagesize($span); ?>
                <?php echo $span; ?>



getimagesize - El Forum - 10-19-2009

[eluser]John_Betong[/eluser]
 
I am currently working on an image related site and was curious so ran some tests. The first time I tried getimagesize(...); worked fine, I tried on another browseer and it did not work so I tried to just open the image and it timed out.

Fortunately the original image was still open in the first browser I tried. I downloaded the image to my desktop then uploaded to one of my sites. It now works everytime so it looks as though you have a problem with your site hosting. Can I interest you in site hosting Smile
 
http://johns-jokes.com/downloads/thesongofthesirens.jpg