This is a discussion on "image error" within the PHP Forum section. This forum, and the thread "image error are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
image error
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
image error
how can i stop my php displaying this error:
Warning: getimagesize(http://img.photobucket.com/albums/v3...cher/rottf.gif): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/httpd/vhosts/bpcu.co.uk/httpdocs/forum/viewtopic.php on line 189 sometimes it does it, sometimes it doesnt. the link is http://www.bpcu.co.uk/forum/viewtopic.php?topicid=33 please be kind on the site - im 17 and its my first attempt at fully coding a forum! |
|
|
|
|||
|
Can you give us the code for line 189?
Is there any connection between when the error does and doesn't throw? I refreshed the page a few times and couldn't get the error. |
|
||||
|
there doesnt seem to be any connection - its just randomly.
and the code is...
|
|
|||
|
I would expect there's some sort of problem accessing that URL - are you sure it's necessary? Does the site sometimes time out?
|
|
||||
|
theres no problem, because it still displays the picture below that error....
and i need that line of code so that i can resize the image if it's above 140px wide... |
|
||||
|
does anyone know? its makes my forum look ugly lol
and i dont know any other way of restricting the size of user's avatars |
|
|||
|
Oh I see, this is for avatars? PHPBB uploads a user's image to the site's webspace and only allows the image to be used if it's the correct width, etc. That way you don't rely on an external site to give you an image and you don't have to check the width of the image every time it's displayed...
|
|
|||
|
phpbb does not resize the image, it simply refuses any images that are too large.
|
![]() |
| Tags |
| image, error |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. | VegaLA | Classic ASP | 3 | Jan 26th, 2008 00:12 |
| Keep getting error message Microsoft VBScript runtime error '800a01a8' | cpando1974 | Classic ASP | 2 | Aug 7th, 2007 12:00 |
| Error 500 - Internal server error | JasonStanley | PHP Forum | 3 | Apr 23rd, 2007 17:56 |
| Simple CSS Error. Please Help (Padded Border Around Image) | tharshan | Web Page Design | 4 | Mar 11th, 2007 00:37 |