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
How to convert numbers to strings in php?
How are cookies created?
What is putenv?
Is jquery better than javascript?
Is apache needed for php?
What are the advantages of stored procedures in php?
What is filter_var?
Do you know when sessions ends?
Explain different sorting function in php?
What is a controller in programming?
Tell me what are the __construct() and __destruct() methods in a php class?
Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani
How do I escape in php?
Name and explain five of the PHP error constants?
Why php 7 is faster?