Re: permission failure with fopen

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

 




Hi All,

I get strange permission problems with fopen() ...

$directory = "somedir";
$filename = $directory . "/somefile.txt";
$handle = fopen($filename, "w"); // gives: failed to open stream: Permission denied
but,
- fileperms($directory) gives: 0777 and is_writable($directory) gives "writable"
- fileperms($filename) gives 0666  and is_writable($filename) gives "'writable"

I'm testing on Windows XP SP2 with PHP 5.2.0

Any idea how to solve this ?

TIA, Cor


I you belonged in the unixworld I would suggest to check the directory's permissions but I don't remember if this applies to windows as well...

--
Thodoris


--
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