Re: Re: failed to open stream warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux