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
Write a program to display table of a number using php?
How cookies are transported from browsers to servers?
What is meant by an associative array?
How do I clear my browser session?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
What is regular expression in javascript?
Who is known as the father of php?
Explain briefly about a search-friendly site looks like?
What is difference between rest api and restful api?
What is session_register()?
Does php 5 support exceptions?
What is magic quotes?
Tell me what is the definition of a session?
What is the difference between for and foreach loop in php?
What is faster in php?