Reply to fopen

Your name:

Reply:


Posted by John Taylor-Johnston on 03/19/05 08:03

Hi,
FOpen question. My script is dying. "Our results file could not be opened for writing"

What can I add to get more info from the die? Do I «have» to specify a pathname in $defaultfile?

John

$defaultfile = "ffmail.txt"; #default file to write to
@ $results = fopen($datafilename, "a"); #open file and supress errors
#print custom error if file doesn't exist or improper permissions
if (!$results) { die ("Our results file could not be opened for writing."); }

[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

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