You are here: Re: Simple text file reading codes NOT working « PHP Programming Language « IT news, forums, messages
Re: Simple text file reading codes NOT working

Posted by Ewoud Dronkert on 10/18/05 14:58

Jofio wrote:
> gone wrong here? When I run it, the browser displays: 'COULD NOT Read'
>
> $fh=fopen($visitorFile,"r+") or die("could not open.");
> $Visited=fread($fh, filesize($visitorFile)) or die("Could not

Probably has to do with the r+ mode of opening the file. Try r or rb, or
getting the filesize before opening the file.

--
E. Dronkert

 

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

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