#19065 [NEW]: file() error.
From: vjavierc@hotmail.com
Operating system: Windows 98
PHP version: 4.2.2
PHP Bug Type: Filesystem function related
Bug description: file() error.
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 bug report at http://bugs.php.net/?id=19065&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19065&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19065&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19065&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19065&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19065&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19065&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19065&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19065&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19065&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19065&r=globals
Thread (2 messages)
- vjavierc at hotmail dot com