php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23237 failed to open stream
Submitted: 2003-04-16 02:48 UTC Modified: 2003-04-21 12:36 UTC
From: paul dot d dot rowlands at delphi dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.3.2RC1 OS: win 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: paul dot d dot rowlands at delphi dot com
New email:
PHP Version: OS:

 

 [2003-04-16 02:48 UTC] paul dot d dot rowlands at delphi dot com
ERROR.LOG
[16-Apr-2003 07:57:35] PHP Warning:  file  (d:/temp/ht2/160403.ht2) [<a href='http://www.php.net/function.file'>function.file</a>]: failed to open stream: Permission denied in d:\Apache Group\Apache2\htdocs\fa_tools_ht.php on line 110

TIME       FILES                filesize()   FILE()
07:57:09 d:/temp/ht1/160403.ht1   31818       458
07:57:09 d:/temp/ht2/160403.ht2   26656       384
07:57:34 d:/temp/ht1/160403.ht1   31887       459
07:57:34 d:/temp/ht2/160403.ht2   26725         1
07:57:43 d:/temp/ht1/160403.ht1   31887       459
07:57:43 d:/temp/ht2/160403.ht2   26725       385

CODE
$file1="d:/temp/ht1/$date_str.ht1";
$file2="d:/temp/ht2/$date_str.ht2";
$size_file1=filesize($file1);
$file_array1=file($file1);
$size_file2=filesize($file2);
$file_array2=file($file2);

FILE() returns 1. Why is this so ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-21 12:36 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 21:01:29 2024 UTC