if (is_uploaded_file($_FILES['uploadedfile']['tmp_name']) && $_FILES['uploadedfile']['error']==0){
$path = 'C:/wamp64/www/uploads/' . $_FILES['uploadedfile']['name'];
if (!file_exists($path)) {
if (move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $path)) {
echo "The file was uploaded successfully.";
} else {
echo "The file was not uploaded successfully.";
}
} else {
echo "File already exists. Please upload another file.";
}
} else {
echo "The file was not uploaded successfully.";
echo "(Error Code:" . $_FILES['uploadedfile']['error'] . ")";
}
// get data from the form html
//$bday = $_POST['bday'];
$gender = $_POST['gender'];
//$vehicle1 = $_POST['vehicle1'];
//$vehicle2 = $_POST['vehicle2'];
$Filename = $_FILES['uploadedfile']['name'];
$tmpname = $_FILES['uploadedfile']['tmp_name'];
$Filesize = $_FILES['uploadedfile']['size'];
$Filetype = $_FILES['uploadedfile']['type'];
echo 'Your designation is ' .$tmpname. '<br>';
$fp = fopen($tmpname, 'r');
$content = fread($fp, filesize($tmpname));
$content = addslashes($content);
fclose($fp);
if(!get_magic_quotes_gpc())
{
$Filename = addslashes($Filename);
}
$connect = mysqli_connect('localhost','root','','radio') or die (mysqli_connect_error());
if(!$connect) die("Unable to connect to MySQL").mysqli_error($connect);
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
This award recognizes an author who contributes the highest volume of original works or content. Recipients of this award produce extremely valuable content that prioritizes accuracy, relevancy, and professionalism.