You are here: Re: [PHP] Re: failed to open stream warning « PHP « IT news, forums, messages
Re: [PHP] Re: failed to open stream warning

Posted by Michael Hulse on 11/28/86 11:36

On Jan 4, 2006, at 4:56 PM, zedleon wrote:

> I just corrected the code...I had it correct but posted it in
> correctly.
>
> $fp = fopen("home/path/temp" "w+");
> puts($fp, $msg);
> fclose($fp);
>
> Still getting the same warning...
>

I think you forgot a comma this time...

$fp = fopen("home/path/temp", "w+");

Other than that, do you have a file you can specify? Also, you should
make sure your permissions are set correctly... check the parent folder
and the file you want to open.

I am sure you have been here already, but:

http://us2.php.net/manual/en/function.fopen.php

Good luck,
Micky

 

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

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