uploading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am playing with uploading files. The names will then be stored in the db.
I have a
simple form:

<form action="upload.php" method="post" enctype="multipart/form-data">
  Send these files:<br>
  <input name="userfile[]" type="file"><br>
    <input type="submit" value="Send files">
</form>

Which calls a php file that just contains this:
copy($_FILES['userfile']['tmp_name'], "\ufiles\");

 This ufiles folder is under my htdocs folder in apache.  I have looked
through the help files in php.net but am just not getting it today.  How do
I simply upload the file?  I tried to move uploaded file function but can't
seem to get that to work also....any ideas would be greatly appreciated!

Thanks,
Eddie


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux