note 42388 added to function.copy
| From: | groundflyer at msn dot com | Date: | Fri, 14 May 2004 12:36:10 +0000 |
| Subject: | note 42388 added to function.copy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69603@lists.php.net to get a copy of this message | ||
Heeej i am using copy in my script but it doesn't work could some one help me. This is my
script:
ERROR Message= No such file or directory in /home/www/web01126/html/upload/upload.php on line 13
<?php
$blaat = $_POST ['username'];
session_start();
$_SESSION['username'] = "$blaat";
// zal afdrukken: bar
echo $_SESSION['username'];
if(!(copy($_FILES['username'] ['tmp_name'], "upload/"
.$_FILES['userfile']['name'])))
die ("Cannot upload file");
echo "file upload complete";
?>
----
Manual Page -- http://www.php.net/manual/en/function.copy.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42388
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42388&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42388&report=yes
Search -- http://master.php.net/manage/user-notes.php