This is a simplified version of a script to retrieve a variable from a file. The file "file.txt" contains the word "Tech".
<?
$fp = fopen ("file.txt","r");
$ind = fgets($fp, 100);
fclose ($fp);
if ($ind=="Tech")
{
echo $ind;
}
?>
The script as is generates nothing. If I remove the if statement, it writes "Tech". I can't figure out why the if statement doesn't work. Help!