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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC