Re: Reading files in PHP 5.3.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux