#23577 [Opn]: Uploading problems!!!!! aM angry!
| From: | androbtech at monosalvaje dot com | Date: | Sun, 11 May 2003 01:21:40 +0000 |
| Subject: | #23577 [Opn]: Uploading problems!!!!! aM angry! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39426@lists.php.net to get a copy of this message | ||
ID: 23577
User updated by: androbtech at monosalvaje dot com
-Summary: ja
Reported By: androbtech at monosalvaje dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Mac OS X "jaguar" & Windows 2000
PHP Version: 4.3.1
New Comment:
k
Previous Comments:
------------------------------------------------------------------------
[2003-05-10 20:20:44] androbtech at monosalvaje dot com
I've tried everything for uploading some data to a mysql database, the
configuration in the PHP.INI is fine and I don't know what is it.
<?php
if(!$_GET["x"]) {
echo("<form method=post action=index.php?x=1
enctype=\"multipart/form-data\"><input type=file name=archivo><input
type=submit></form>");
} else {
$a = fopen($_FILES["archivo"], "r");
$leer = fread($a , $_FILES["archivo"]["size"]);
$leer = addslashes($leer);
header("Content-Type: $_FILES[archivo][type]");
echo($leer);
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23577&edit=1