|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-10 20:21 UTC] androbtech at monosalvaje dot com
[2003-05-11 01:09 UTC] georg@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 13:00:02 2026 UTC |
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); } ?>