I have the following code, my bad if it is not in correct format... still learning.
<?php
$string = file_get_contents('/path/to/file');
$found = 'found';
if($string == $found){
echo "string match";
}
else {
echo "string does not match found";
}
echo "<br>";
echo "value of string: $string";
echo "<br>";
echo "value of found: $found";
?>
The output of that says: "string does not match found". and the value for $string and $found is the same. If the value of $string and $found are not the same it still says:"string does not match found". Am I missing something or am I going nuts... Please let me know what is wrong with my code.Thanks in advance