Reply to Re: Simple text file reading codes NOT working

Your name:

Reply:


Posted by Steve on 10/18/05 16:27

> My PHP code to read a simple text file is listed below. What could have
> gone wrong here? When I run it, the browser displays: 'COULD NOT Read'
> opton of the fread() function. I thought the code was OK.

There are many possible reasons. Please ensure that error reporting is
turned on. See
<http://www.php.net/manual/en/function.error-reporting.php>.

ie first statement: error_reporting(E_ALL);

Then you should see a message along the lines of:

PHP Warning: fopen(counter.txt): failed to open stream: No such
file or directory in xxxx on line x

This will show the real reason your fopen() is failing. You might have
to use View / Source to see the error message embedded in your HTML if
you have already written tags.

---
Steve

[Back to original 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

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