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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 06:01:34 2024 UTC