RE: fopen on windows

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

 



[snip]
Well, it's a pretty model example of a line-by-line file read. I can't 
see anything wrong with it, so perhaps the problem lies elsewhere. 
There's no other files with the same name in your include_path?

Maybe something to do with auto_detect_line_endings or whatever it's 
called, in php.ini? (I know, probably a long shot.)
[/snip]

The output now looks like....
Array
(
    [0] => 
)
Array
(
    [0] => 
)
Array
(
    [0] => 
)

based on the following code;

$theFile = fopen("docs/InstallationInstructionMaster.txt", "rb") || die;

while(!feof($theFile)){
	$theLine = fgets($theFile);
	$lineArray = explode("\t", $theLine);
	print_r($lineArray);
}
fclose($theFile);

It appears that something is getting read, but what?

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