Reply to Re: Fopen failure

Your name:

Reply:


Posted by AnrDaemon on 01/25/08 06:31

Greetings, faraz_mit.
In reply to Your message dated Thursday, January 24, 2008, 13:54:42,

In addition to the Erwin's post,

> $handle = fopen($file, "r");
> if(!($handle = fopen($file, 'r'))) echo "File failed to open";

Why You trying to open the file twice?

> Can somebody tell me please what is wrong with the way i call fopen.
> I am running on a shared server and also tried different permissions
> such as r and rb.

"r" and "rb" is not a permissions, but opening modes. "b" suffix telling PHP
to read file in binary mode.


--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

[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

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