ID:               48852
 Updated by:       paj...@php.net
 Reported By:      trutas dot ctx at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         IIS related
 Operating System: Windows Server 2003 x64 IIS6.0
 PHP Version:      5.3.0
 New Comment:

How did you install php? FCGI or ISAPI?


Previous Comments:
------------------------------------------------------------------------

[2009-07-08 14:01:20] trutas dot ctx at gmail dot com

Description:
------------
Access denied on a simple file_put_contents 
- the strange thing is vbscript test file on the same folder works 
- destination has everyone->modify/read/write.

localhost/test.asp
localhost/test.php

i think it is not relevant but test.php and test.asp are located on the
same \\share that we're trying to save the file to (but on a different
folder). Apparently it works if we map this share to a local drive and
use the local path (eg. E:\ );

file_get_contents works fine.

We are using Windows 2003 Server x64, IIS 6.0, PHP 5.3RC04 x64 via MS
FastCGI .




Reproduce code:
---------------
<?php
file_put_contents("\\\\share\\intraroot$\\folder\\file.txt", "...");
?>

Expected result:
----------------
file saved with content "..."

Actual result:
--------------
PHP Warning:  file_put_contents(\\share\intraroot$\folder\file.txt):
failed to open stream: Permission denied in ...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48852&edit=1

Reply via email to