#19065 [Opn->Bgs]: file() error.
| From: | sniper@php.net | Date: | Fri, 23 Aug 2002 12:05:56 +0000 |
| Subject: | #19065 [Opn->Bgs]: file() error. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17638@lists.php.net to get a copy of this message | ||
ID: 19065
Updated by: sniper@php.net
Reported By: vjavierc@hotmail.com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows 98
PHP Version: 4.2.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. 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
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-08-23 05:44:58] vjavierc@hotmail.com
Hi everybody.
Well, thi fact is that I'm using the file() function, but it seems that
is not working for me.
I'm using a text file, 6 lines long, and just try this:
$file = "foo.txt";
$myarray = file( $file );
and foo.txt just have this:
abc
def
ghi
jkl
mno
pqr
So, I try and use fopen():
$file = "foo.txt";
if(file_exists($file))
{
$fd = fopen( $file, "r" ); // I try with "rb", and get
// same error.
}
now, I use the debugger and it happens that $fd == nil when it opens
the file...... of course, I try reading the file anyway but it just
don't work.....
Can someone please tell me where is my stupid error?....
thankx.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19065&edit=1