>> function parseResponseHeaders($header_file) { >> $http_found = $error_found = false; >> $http_reponse = $error_message = NULL; >> >> $response = array(); >> $response['ResponseCode'] = NULL; >> $response['ErrorMessage'] = NULL; >> >> if (!is_file($header_file) || >> !is_readable($header_file)) { >> return $response; >> } >> >> $fin = fopen($header_file, 'r'); >> while ($line = fgets($fin)) { >> var_dump($line); >> > What does var_dump($line); tell you? Nothing, not even an empty variable. Which is why I think something is completely screwed up here. BTW, squares at the end of lines are your platform not interpreting EOL characters correctly from another platform. Generally, its the sending client thats not being friendly, not the receiving client. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php