hi,
i've got this piece of code to read the contents of an email.
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
$email .= fread($fd, 1024);
}
fclose($fd);
pretty standard. however, the contents of the email churn out random '=' in random spaces in between the texts.
the original email looks like this.
Agent: TRAVEL & TOURS, gingar
Beijing Hotel, China 3*, China
this is what is printed when i print $email. notice the '='. I did not do any search and replace of spaces with '='.
Agent: TRAVEL = & TOURS, gingar
Beijing Hotel, China = 3*, China
does anybody know why is this happening? pls help!!