Answer Posted / sei thu htun
Here is example code:
On HTML:
<form enctype="multipart/form-data" action="uploader.php"
method="POST">
<input name="uploadedfile" type="file" />
<input type="submit" value="Upload File" />
</form>
On PHP Script:
$target_path="YOUR_TARGET_PATH_FOR_STORE_UPLOAD_FILE_ON_SERVER";
if(@move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
$target_path)) {
echo "Success";
} else{
echo "Error";
}
Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Explain what does the unset() function means?
Explain object-oriented methodology in php?
What is data abstraction in php?
Is php a case sensitive language?
What is the use of final class in php?
How I can control asset documents without GR/IR?
What is session management php?
Is php a float?
What is the difference between query and inquiry?
Where do we use get and post?
What is the difference between Session and Cookie?
What is php in full?
What are the variables in php?
How to download and install php on windows?
How to concatenate two strings together in php?