Thanks a million scoppc.
That worked. In php.ini file I added the file you mentioned and now my browser is showing images.
But it has still not solved my other problem. This is the code I am using
------- form.htm------------------
<HTML>
<HEAD>
<TITLE>Binary Data Insert Form</TITLE>
</HEAD>
<BODY>
<H1>Upload a File:</H1>
<FORM enctype="multipart/form-data"
method="post" action="insert.php">
<INPUT type="file" name="img1" size="30">
<INPUT type="submit" name="submit"
value="Use this File">
</FORM>
</BODY>
</HTML>
------insert.php----------------
<?
if (!isset($img1)) {
header("Location:form.htm");
exit;
}
$db = @mysql_connect(localhost,"root", "") or die("Can't connect to server.");
@mysql_select_db("test", $db) or die("Can't select database.");
$binary_junk = addslashes (fread(fopen($img1, "r"), filesize($img1)));
$insert_data = "INSERT INTO images (img_id, binary_junk, filename, filesize, filetype) VALUES
('1', '$binary_junk', '$img1_name', '$img1_size', '$img1_type')";
@($insert_data) or die("Couldn't insert data.");
?>
This page returns back to form.htm withouth doing anything.
Can someone help me on this also
Thanks