Welcome Guest, Not a member yet? Register   Sign In
getimagesize
#1

[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/yellowdogy...sirens.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; ?>
#2

[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
 
 




Theme © iAndrew 2016 - Forum software by © MyBB