?
Solved

PHP Uploading Files

Posted on 2003-03-01
1
Medium Priority
?
201 Views
Last Modified: 2006-11-17
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
Comment
Question by:RavenClaw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
Lukasz Lach earned 400 total points
ID: 8047163
<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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question