Binary files & Tmp directory

From: Date: Sat, 09 Sep 2000 21:06:19 +0000
Subject: Binary files & Tmp directory
Groups: php.windows 
Request: Send a blank email to php-windows+get-2555@lists.php.net to get a copy of this message
Hope someone can give me a pointer as to why this script keeps failing with the error message below. It's designed to take data from an upload form (images) and post them into a mySQL database. If you need more info I have it but thought I'd see if there was something wrong with the script first. I have my database table created, I have the result query working just peachie but actually getting any images into the database has me stumped. Wondered if it is a read/write permissions thing? I have no access to change php.ini options on my ISPeeez server. php info returned this information on the tmp directory, can I set this myself somehow if it is read/write that is the problem? upload_tmp_dir no value Thanks in advance. Karl ---- snip ---- If($Picture != "none") { $PSize = filesize($Picture); $mysqlPicture = addslashes(fread(fopen ($Picture, "r"), $PSize)); @mysql_connect($host,$username,$password) or die("Unable to connect to SQL server"); @mysql_select_db($db)or die("Unable to select database"); mysql_query("INSERT INTO Images (Image) VALUES '($mysqlPicture')") or die("Can't Perform Query"); } else { echo"You did not upload any picture"; } ?> ---snip ---- error message ----- Warning: fopen("","r") - Interrupted system call in /upload_blob.php on line 14 Warning: Supplied argument is not a valid File-Handle resource in /upload_blob.php on line 14 Can't Perform Query

« previous php.windows (#2555) next »