From:             rvk at au dot ru
Operating system: Windows XP
PHP version:      5.0.3
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  Error while opening remote file

Description:
------------
I need to load .csv file from remote computer. When I run php like
command-line script - result found. Remote file opening and display
correctly, but when I run my php file at IIS, rarely! file opening
correctly. Browser display: "failed to open stream: Permission denied in
...". Remote file have "readonly" attributes and stored at computer with
Windows-98 operation system. At same time no one program will read or
write this file. The "read" rights on file set for everyone, not for me
only.
Catalog with this file shared for local intranet.
That may be wrong? 
 

Reproduce code:
---------------
$file = file("\\\\remote_computer_name\\catalog\\myfile.csv");
$file[0] = explode(",", $file[0]);
foreach($file[0] as $key => $field) echo $field."\n";

Expected result:
----------------
field_1
field_2
...
field_n

Actual result:
--------------
Warning: file(\\Mac2111\var\01_01_2005\arh_3.csv) [function.file]: failed
to open stream: Permission denied in c:\Inetpub\wwwroot\php\get_fields.php
on line 20

-- 
Edit bug report at http://bugs.php.net/?id=31741&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31741&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31741&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31741&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31741&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31741&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31741&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31741&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31741&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31741&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31741&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31741&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31741&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31741&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31741&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31741&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31741&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31741&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31741&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31741&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31741&r=mysqlcfg

Reply via email to