Small fix.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@69677 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Torben Wilson 2002-02-07 01:26:48 +00:00
parent f8e6c862a9
commit 8b13852da5

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.31 $ -->
<!-- $Revision: 1.32 $ -->
<chapter id="features.file-upload">
<title>Handling file uploads</title>
@ -191,7 +191,7 @@ Send this file: <input name="userfile" type="file">
<programlisting role="php">
<![CDATA[
<?php
// PHP 4.1.0 or later, $_FILES may be used instead of $HTTP_POST_FILES
// In PHP 4.1.0 or later, $_FILES should be used instead of $HTTP_POST_FILES.
if (is_uploaded_file($HTTP_POST_FILES['userfile'])) {
copy($HTTP_POST_FILES['userfile']['tmp_name'], "/place/to/put/uploaded/file");
} else {