php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23577 Uploading problems!!!!! aM angry!
Submitted: 2003-05-10 20:20 UTC Modified: 2003-05-11 01:09 UTC
From: androbtech at monosalvaje dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.1 OS: Mac OS X "jaguar" & Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: androbtech at monosalvaje dot com
New email:
PHP Version: OS:

 

 [2003-05-10 20:20 UTC] 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);	
	}
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-10 20:21 UTC] androbtech at monosalvaje dot com
k
 [2003-05-11 01:09 UTC] georg@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 13:00:02 2026 UTC