How can we upload files in PHP?
How can we upload files in PHP? i want that user can be post own resume file through form. please tell me php script for that.
thanks for any reply.
Using a form with a file input which is then captured by PHP which moves the file into a folder
<form method="post" enctype="multipart/form-data">
<input type="file" name="resume">
$file = $_FILES['resume']['tmp_name'];
$path = "/files/".$_FILES['resume']['name'];
Check out the "sticky" thread near the top of this forum on uploading images. (Just ignore any parts that would only apply to image manipulation.)
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
The important thing to remember is not to overcomplicate it...uploading a file in PHP is very simple and can be done in a few lines of code...it is actually more complicated adding security to it, so my suggestion would be to get the upload working (maiking sure webserver has write permission to the folder, etc), then begin to lock it down and secure the input.
We do precision guesswork
I also agree with all above answers and we suggest for my developers. The knowledge of PHP basis uploading is more complicated thing for developers so if you are new person in php http://www.csschopper.com/hire-dedic...essional.shtml then you can also hire any experiance developers from any company. I know that experienced company can solve your problem. I hope you also take CSS Chopper.com company for hiring of any kind of PHP developers.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)