Hi,
I am new to usinh php, and I got few peoblem in Thumbnail Generation Error.
1.When I using XAMPP to run the script is sucess to generate the image but it does not run the resize function. Even I put the gdiplus.dll in the same directory.
2.When I upload the script to my windows web hosting, "
Thumbnail Generation Error." error message is appear.
And I using the following script for checking,
******************************************************
<?php
$filename = 'IECapt.exe';
if (file_exists($filename)) {
echo "The file ------> ".$filename." <------ exists. <br><br>";
} else {
echo "The file ------> ".$filename." <------ does not exist.<br><br>";
}
$filename = 'webthumb.php';
if (file_exists($filename)) {
echo "The file ------> ".$filename." <------ exists. <br><br>";
} else {
echo "The file ------> ".$filename." <------ does not exist.<br><br>";
}
$filename = 'gdiplus.dll';
if (file_exists($filename)) {
echo "The file ------> ".$filename." <------ exists. <br><br>";
} else {
echo "The file ------> ".$filename." <------ does not exist.<br><br>";
}
$arr = array();
@exec('IECapt.exe http://www.cisco.com cisco.png', $arr);
echo "<pre>";
print_r($arr);
echo "<br><br>";
$arr2 = array();
exec('IECapt.exe http://www.cisco.com cisco.png', $arr2);
echo "<pre>";
print_r($arr2);
?>
*****************************************************
and the result is
*****************************************************
The file ------> IECapt.exe <------ exists.
The file ------> webthumb.php <------ exists.
The file ------> gdiplus.dll <------ exists.
Array
(
)
Array
(
)
***************************************************
Here the link for test result:
http://www.tut-design.com/phptest/Website_Thumbnail_Generator/test.php
------------------------------------------------------------------
Here the link for input the url:
http://www.tut-design.com/phptest/Website_Thumbnail_Generator/index.php
------------------------------------------------------------------
Thx~