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 difference between session and cookies in php?
What does the function get_magic_quotes_gpc() means?
What is print_r?
Why triggers are used in mysql?
What are php libraries?
What is the main difference between php 4 and php 5?
Does php has a future?
Which is the correct way to check if a session has already been started ?
What are the new features in php 7?
What is php constructor?
What is mysql_fetch_row?
How stop the execution of a php scrip?
how to open & closing opening period in fico
Are parent constructors called implicitly inside a class constructor?
Explain the difference between php4 and php5.