ob_start();
$target_path =realpath( dirname( FILE ) ) . "/uploaded_invoices/";
echo"hello";
if ($_FILES['uploadedfile']['error'] == 0)
{
$target_path .= $_FILES['uploadedfile']['name'];
$result=move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path);
echo $result;
if($result==true)
{
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
header("location:http://weil-mclain.golden-tech.com/professionals/contractors_only/main.html");
}
else
{
echo "There was an error uploading the file, please try again!";
}
}
it shows there was an error uploading file..can anyone tell whta the problem is ...its URGEnt!!!