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 preg_match?
How do I install php?
What is the php function that removes the last element of the array and returns it?
Explain the difference between isset() and empty()?
What is php pathinfo?
What are php strings?
What is the basic function to search files for lines (or other units of text) that contain a pattern.
How to generate a character from an ascii value?
Is polymorphism inherited?
What is the use of preg_match in php?
What is the difference between php 5 and php 7?
What is traits? How it is used in php?
Tell me what does the array operator '===' means?
How to create and destroy cookies in php?
Write a select query that will be displayed the duplicated site name and how many times it is duplicated?