• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

PHP Uploading Files

I have windows XP and apache 1.3.7 or sumthing like that!
i want to make an option for visitors to upload screenshots of their games, however i dont no how to upload files. any help?
0
RavenClaw
Asked:
RavenClaw
1 Solution
 
Lukasz LachCommented:
<INPUT TYPE="file" NAME="file1">
...

<?
  if (is_uploaded_file($file1)) move_uploaded_file($file1, "some/directory");

That will be all :-)
See http://www.php.net/manual/en/function.is-uploaded-file.php also
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now