From: [EMAIL PROTECTED] Operating system: Mandrake Linux 8.0 PHP version: 4.0.4pl1 PHP Bug Type: Filesystem function related Bug description: Reading a file into array using file() from Windows IE and Opera 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 import\n"; 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 -- Edit Bug report at: http://bugs.php.net/?id=10637&edit=1 -- 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]