my switch case isnt currently working, when the variable it uses is bought over from a text file.
<?php
$file = fopen("Update/Location.txt", "r") or die("Unable to find file");
$string = fread($file,filesize("Update/Location.txt"));
echo $string . "<br>";
switch ($string) {
case "Home":
echo "I am currently " . $string . ", feel free to contact me whichever way is best for you.<br>";
case "Work":
case "University":
echo "I am currently " . $string . ", the best way to contact me is through email or text message<br>";
break;
default:
echo "i am currently unreachable <br>";
break;
}
fclose($file);
?>
for further reference, please see my basic website: http://ryanclambert.worcestercomputing.com
cheers
Location.txt
locread.php