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 php glob?
How easy is php?
What is difference between static and final in php?
What is namespace and use in php?
How do you use an array in excel?
How do you remove whitespace from the beginning and end of a $string variable?
What is implode() in php?
How to create a text file in PHP?
What is the function file_get_contents() usefull for?
Is php object oriented?
What is the meaning of php?
How to run the interactive php shell from the command line interface?
What is the difference between implode() and explode() in php?
How many types of errors in php?
What is the difference between apache and tomcat?