i created a simple upload script which works fine and uploads image.
i m not involving validation at present.
Code:
<?php
if($_FILES['photo']['name'])
{
echo $file_name = $_FILES['photo']['name'];
echo "<br>";
echo $file_tmp =$_FILES['photo']['tmp_name'];
move_uploaded_file($_FILES['photo']['tmp_name'], 'upload/'.$_FILES['photo']['name']);
Leave a comment: