Hi all, I have a script to upload a file into MySQL as BLOB. this script works nicely on a LAMP server, but i have to implement it on a Windows2000 server running PHP, Apache and MySQL. -- here goes the "gather.php" content, which allow us to browse for a specific file in the system, and a "Upload" button. ---------------------- gather.php ----------------------------- <?php <form enctype="multipart/form-data" action="show.php" method="post"> <input type="file" name="fileToUpload" size="35"> <input type="submit" value="Upload the file" name="Submit"> </form> ?> ----------------- end of gather.php --------------------------- -- here goes the "show.php" content, which show us the index of the file to upload in to MySQL. (on windows: Notice: Undefined variable: fileToUpload in e:\viraj\office\inventory\2.php on line 3) (on Linux: Resource id #1 ) ---------------------- show.php ----------------------------- <?php $fileHandle = fopen($fileToUpload, "r"); echo $fileHandle; ?> ---------------------- end show.php ------------------------- It seems a problem in passing variables through the POST array.(but if we make the Form input type from "file" to "text" it pass the value correctly.) pls direct me on this issue.. thanks a lot. Viraj.