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 alias in php?
How can we access the data sent through the url with the post method?
Which MySQL function would you use to select a database?
What does session start do in php?
What is the purpose of a query?
What is the difference between array_pop() and array_push()?
Is php free to use?
How can we change the value of a constant?
Tell me what is the definition of a session?
Is it more secure to use cookies to transfer session ids?
Which framework is best for php development?
Write a program to display reverse of any number?
How to execute a php script from the command line?
What is the difference between require and include in php?
Which array function checks if the particular key exists in the array?