Hey geeks,
I am using a script PHP Thumbnailer which resize image at run time. But it is not working in my case as i have integrated that script by studying it's documentation.
Here is the URL where i am using his script.
My URL
and here is the script code i am using in my application
and the how_image.php file has the following code
and here is the URL from where i read this script help
SCRIPT HELP URL
it has heading name "Showing Images" which tells hwo to resize image dynamically.
Kindly help me to sort out my problem.
kind regards,
Mohsin Rafique
I am using a script PHP Thumbnailer which resize image at run time. But it is not working in my case as i have integrated that script by studying it's documentation.
Here is the URL where i am using his script.
My URL
and here is the script code i am using in my application
Code:
<img src="show_image.php?file=show_image.php?file=images%2Fproducts%2F1246358928.gif" />
Code:
<?php
error_reporting(E_ALL);
require_once 'lib/ThumbLib.inc.php';
$fileName = (isset($_GET['file'])) ? urldecode($_GET['file']) : null;
if ($fileName h3. null || !file_exists($fileName)){
// handle missing images however you want... perhaps show a default image?? Up to you...
}
try{
$thumb = PhpThumbFactory::create($fileName);
}
catch (Exception $e){
// handle error here however you'd like
}
$thumb->resize(100, 100);
$thumb->show();
?>
and here is the URL from where i read this script help
SCRIPT HELP URL
it has heading name "Showing Images" which tells hwo to resize image dynamically.
Kindly help me to sort out my problem.
kind regards,
Mohsin Rafique
Comment