Answer Posted / kapil dhiman
<?php
move_uploaded_file($_FILES['file']['tmp_name'],"images/".$_FILES['file']['name']);
?>
<form action="" method="post" enctype="multipart/form-data">
File<input type="file" name="file" /><input type="submit" name="sub" value="Upload" />
</form>
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Distinguish between urlencode and urldecode?
Is it easy to learn wordpress?
What is the difference between md5(), crc32() and sha1() crypto on php?
What is the difference between session_unregister() and session_unset()?
What is php regular expression?
What is the difference between $argv and $argc? Give example?
Explain what is the difference between session and cookie?
What is $row in php?
What is better .net or php?
Tell me can the value of a constant change during the script's execution?
Explain what is the difference between for and foreach?
What is a comment in php?
How many functions are there in php?
What types of MYSQL function available for affecting columns
What are the php functions?