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
What is empty () in php?
Name some of the popular frameworks in php.
What is strcmp () in php?
Tell me what is the use of the function htmlentities?
Who is known as the father of php?
What is mod_php?
How to create an array in php?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
What are constructor and destructor in PHP?
Do csrf tokens expire?
What is difference between compile time and run time polymorphism?
How many escape sequences are recognized in single-quoted strings?
What happens when submit button is clicked?
Do while loops?
How do you access a get requests url parameter with php?