Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Help with why images wont show on my site

Status
Not open for further replies.

oveber

Level 7
Legacy Platinum Member
Joined
May 20, 2006
Messages
883
Reaction score
0
Warning: getimagesize(/wwwthumbs/myspace_layout_contact-27.gif) [function.getimagesize]: failed to open stream: No such file or directory in /home/myspace/public_html/thumb.php on line 4

put an . into this word maybe help you???
 

wolfis.com

DNF Addict
Legacy Exclusive Member
Joined
Aug 3, 2003
Messages
1,560
Reaction score
23
open file : thumb.php

go down to line # 4 ( just count to 4 )

u see it ?
 

MPinelli

Level 8
Legacy Platinum Member
Joined
Dec 3, 2004
Messages
1,090
Reaction score
0
i dont see it. this is what it looks like.

<?
include("config.php");
function makeThumbnail($o_file, $t_ht = 100) {
$image_info = getImageSize($o_file) ; // see EXIF for faster way

switch ($image_info['mime']) {
case 'image/gif':
if (imagetypes() & IMG_GIF) { // not the same as IMAGETYPE
$o_im = imageCreateFromGIF($o_file) ;
} else {
$ermsg = 'GIF images are not supported<br />';
}
break;
case 'image/jpeg':
if (imagetypes() & IMG_JPG) {
$o_im = imageCreateFromJPEG($o_file) ;
} else {
$ermsg = 'JPEG images are not supported<br />';
}
break;
case 'image/png':
if (imagetypes() & IMG_PNG) {
$o_im = imageCreateFromPNG($o_file) ;
} else {
$ermsg = 'PNG images are not supported<br />';
}
break;
case 'image/wbmp':
if (imagetypes() & IMG_WBMP) {
$o_im = imageCreateFromWBMP($o_file) ;
} else {
$ermsg = 'WBMP images are not supported<br />';
}
break;
default:
$ermsg = $image_info['mime'].' images are not supported<br />';
break;
}

if (!isset($ermsg)) {
$o_wd = imagesx($o_im) ;
$o_ht = imagesy($o_im) ;
// thumbnail width = target * original width / original height
// $t_wd = round($o_wd * $t_ht / $o_ht) ;
$t_wd = $t_ht;

$t_im = imageCreateTrueColor($t_wd,$t_ht);

imageCopyResampled($t_im, $o_im, 0, 0, 0, 0, $t_wd, $t_ht, $o_wd, $o_ht);

imageJPEG($t_im);

imageDestroy($o_im);
imageDestroy($t_im);
}
return isset($ermsg)?$ermsg:NULL;
}
header("Content-type: image/jpeg");
makeThumbnail($script_dir . "thumbs/" . $img, 150);
?>
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

No members online now.

Premium Members

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom