ID: 10637 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Filesystem function related PHP Version: 4.0.4pl1 Assigned To: Comments: Please upgrade to PHP 4.0.5 as this should be fixed in it. Reopen this bug report if this is not the case. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-05-03 12:09:19] [EMAIL PROTECTED] Using this to submit: echo "<form action="import.php" method="post" enctype="multipart/form-data" >n"; echo "<input type="file" name="filename"><br>Click browse to select a file to importn"; echo "<br>"; echo "n<br><br><input type="submit" value="Import Database">n</form>n"; and this to read the text file into an array: $fcontents = $file($filename); works perfectly when from the Linux box and using Netscape 4.6 in Windows, but does not work from IE 5.5 or Opera 5.10 in Windows. They both give an HTML output of: Warning: file("Content-Type: text/plain; name="savedrecs.txt" ...text cut out... JI Bioche in /home/httpd/html/paper_database/includes/classes.inc on line 312 and this when trying to read it into an array, as it has not read it into the array: Warning: Variable passed to each() is not an array or object in /home/httpd/html/paper_database/import.php on line 41 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10637&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]