Hello sir,
don't want to give up

I did look into all my file and IECapt...and this was duplicated in a directory above htdocs..think that was one of the problem because when I cleaned it, my form was able to open DOS for half a second and than closed. with your script provided to me;
-----------------------------------------------------------------------------------------------------------
<?php
$arr = array();
exec('IECapt.exe http://www.cisco.com cisco.png', $arr);
echo "<pre>"; print_r($arr);
?>
-----------------------------------------------------------------------------------------------------------
looked after several minute to see if cisco.png existed but nothing in my PC at all.
than, I executed: this form.php;
(I think that my problem is here: (check the arrow below <----?

??));
so what I'm trying to do, it is to have a text box to send the URL + png format (per default) sent to:
webthumb.php
here is my form.php;
-----------------------------------------------------------------------------------------------------
<body>
<p> </p>
<form id="form1" name="form1" method="post" action="webthumb.php">
<label>
<p>Pls Enter WEB site:
<input name="textfield" type="text" value="" />
</p><p> <input type="submit" name="url" value="Submit" />
<input type="hidden" name="image_type" value="3"/> <----------?


??
</p>
</p>
</form>
<p> </p>
</body>
----------------------------------------------------------------------------------------------------
My URL is passing, but this Image_type is giving my error msg IMAGE TYPE PBM (that I put for troubleshooting);
if ($image_type == 1) $output_format = 'gif';
if ($image_type == 2) $output_format = 'jpg';
if ($image_type == 3) $output_format = 'png';
die("IMAGE TYPE PBM"); <-------------------------- giving me this error msg.
----------------------------------------------------------------------------------------------------------
Here below is the script that I use;
Is line no. 7($image_type = 3; should be remove or

?)
webthumb.php;
-------------------------------------------------------------------------------------------
$thumbnails_folder = 'C:/Program Files/Apache Group/Apache2/htdocs/image_thumbnail/';
// thumbnails expiration time in minutes
$cache_expire_time = 60;
// quality (for jpeg only)
$image_quality = 100;
// resulting image type (1 = GIF, 2 = JPG, 3 = PNG)
$image_type = 3; <-------------------------??? should be removed???
// maximum thumb side size
$max_x = 100;
$max_y = 100;
// If not equal 0 then cut original image size before resizing (in pixels).
// Long page will have bad thumbnail, its better to cut page length first.
$cut_x = 0;
$cut_y = 1024;
###############################################################################
# END OF SETTINGS. DO NOT EDIT BELOW
###############################################################################
if(isset($_POST['url']) && isset($_POST['image_type'])){
$website_url = $_POST['url'];
$image_type = $_POST['image_type']; <--?

is it OK?

---is value= 3 (from my form.php will go there)??
} else {
die("Site URL must be specified."); <-------this seem OK as I don't have any error msg for this one.
}
if ($image_type == 1) $output_format = 'gif';
if ($image_type == 2) $output_format = 'jpg';
if ($image_type == 3) $output_format = 'png';
die("IMAGE TYPE PBM"); <-------------------------- giving me this error msg.
$website_url_md5 = md5($website_url);
$cached_filename = $thumbnails_folder . $website_url_md5 . '.' . $output_format;
// See if we have cached website screenshot image (to minimize server load)
if (!file_exists($cached_filename)
|| filemtime ($cached_filename) + $cache_expire_time * 60 < time() ) {
// Get website image and save it on the server.
@exec('IECapt.exe ' . escapeshellarg($website_url) . ' ' . escapeshellarg($cached_filename));
} // if (!file_exists
if (!file_exists($cached_filename)) {
die("Thumbnail Generation Error. Thumbnail not created.");
}
// create class instance
include("file:///C|/Program Files/Apache Group/Apache2/A1 Thumnail generator/image.class.php");
$img = new Zubrag_image;
// get parameters
$img->image_type = $image_type;
$img->quality = isset($_REQUEST['q']) ? intval($_REQUEST['q']) : $image_quality;
$img->max_x = isset($_REQUEST['x']) ? intval($_REQUEST['x']) : $max_x;
$img->max_y = isset($_REQUEST['y']) ? intval($_REQUEST['y']) : $max_y;
$img->save_to_file = false;
$img->cut_x = $cut_x;
$img->cut_y = $cut_y;
// generate thumbnail and show it
$img->GenerateThumbFile($cached_filename, '');
?>
---------------------------------------------------------------------------------------------------------
I have a question for you....Is this scritp is writing automatiquely a file name according to the URL name

Or should I put a picture+format name in my form.php

? maybe that's my mistake ??
Will wait for tomorrow for an answer as I'm very tired sir...
Brgds/Charlie.