help for phpthumb

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

3 replies · 444 views · started 16 years ago · 1 min read

2 participants
icedroplet1987 Senior · 258 posts #1

friends, if anybody has fully configured n working phpthumb script then pls share here, i tried allot but didnt able to make my thumb work. its giving 404 image url didnt found.. pls help me somebody..

subzero Super moderator Fellow · 3,954 posts #2

Here is what riderz posted i found to be good what it does

<?php 
$n=$_GET["pic"];
$neww=100;
$newh=100;
list(, , $type,)=@getimagesize($n);
if ($type==1) {
$funci='imagecreatefromgif';
}
if ($type==2) {
$funci='imagecreatefromjpeg';
}
if ($type==3) {
$funci='imagecreatefrompng';
}
if($type){$im1 = @$funci($n);
$im2=@imagecreatetruecolor($neww,$newh);
@imagecopyresized($im2, $im1, 0,0,0,0,$neww,$newh, @imagesx($im1), @imagesy($im1));
@header('Content-type: image/gif');
@imagegif($im2);
}
?>

You better thank him not me 😉

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #4

Yeah is that so simple and it works 🙂

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close