mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Small fix.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@69677 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f8e6c862a9
commit
8b13852da5
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue