You are here: RE: [PHP] fopen on windows « PHP « IT news, forums, messages
RE: [PHP] fopen on windows

Posted by Jay Blanchard on 11/11/05 23:10

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация