|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-29 17:08 UTC] pollita@php.net
[2005-01-30 15:06 UTC] rvk at au dot ru
[2005-02-02 04:21 UTC] rvk at au dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
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