Hey Rainer,
Have you got both of our keys added to the script? If you will notice there are 2 keys highlighted in your lobby.
Can you provide an example page where this is not working?
Best Regards,
Frank
Update: The content in this post maybe out of date or inaccurate. Hello and sorry for my English. My Problem. <?php
if(!defined('ANTI_DIRECT')) exit(header('location: ../'));
function domainThumb($domain,$size='sm') {
global $_config;
if($_config['thumbKey']) {
$failed = 'upload/domainThumbs/_failed.'.$domain.'.jpg';
if(is_file($failed)) $timeout = time() - filemtime($failed);
if(!is_file($failed) || $timeout > 1*24*60*60) {
$request_url = "http://images.shrinktheweb.com/xino.php?"
. "Service=". "ShrinkWebUrlThumbnail"
. "&Action=". "Thumbnail"
. "&stwaccesskeyid=". $_config['thumbKey']
. "&stwsize=" . $size
. "&stwu=" . $_config['thumbSecretKey']
. "&stwurl=http://www.rhwm.eu" . $domain;
$line = implode(file($request_url));
$num_matches = preg_match('/<[^:]*:Thumbnail\\s*(?:Exists=\"((?:true)|(?:false))\")?[^>]*>([^<]*)<\//', $line, $matches);
if($num_matches == 1) {
$thumbnail = $matches[2];
$imagedata = @imagecreatefromjpeg($thumbnail);
if($imagedata != '') {
imagejpeg($imagedata,'upload/domainThumbs/'.$domain.'.jpg',90);
if(is_file($failed)) unlink($failed);
return true;
} else {
copy('env/pix/pixel.gif',$failed);
}
}
}
}
return false;
}
?>I can not find the problem. Please cam you help me ? Rainer
|
|||
Hey Rainer,
Have you got both of our keys added to the script? If you will notice there are 2 keys highlighted in your lobby.
Can you provide an example page where this is not working?
Best Regards,
Frank
Hi
Thank you for your help. Now, i have repair the problem. The problem wars the url in the php file. I have write my url, but in this line i dont write any url.
Now , i have my Thumbs on my Site. And its great.
See my Website niow: http://www.rhwm.eu
and go to the Point: Link-Hits
Hello,
I do not see any problem with your script, at first glance.
We cannot offer free support for things like this, but one suggestion is that I noticed you are using imagecreatejpeg to open the remote image location. Keep in mind that allow_url_fopen must be set to ON for that to work properly. If that turns out to be your problem and you cannot modify that setting, then you could consider using cURL instead.
Take a look at a relevant article I found by searching the forum for "allow url fopen"
Hi
Thank you
I have fix the problem.
The problem is in my php file.
In the php file is this: "&stwurl=http://www.rhwm.eu"
i have now write this : "&stwurl=http://"
an now i have my Thumbs perfect.
See please ma Website : http://rhwm.eu/ShortPopular
But in the php file i can not see the option to the Thumb size.
i will make the Thumbs great. I see in my php file no size.
Thank you.
That's great glad to hear it!
Best Regards,
Frank Grogan
Thank you for all your help.
Thank you very much.
Rainer from Germany
You're very welcome 