#22010 [Opn->Fbk]: glob() problems...

From: Date: Mon, 03 Feb 2003 11:10:48 +0000
Subject: #22010 [Opn->Fbk]: glob() problems...
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31944@lists.php.net to get a copy of this message
ID: 22010 Updated by: edink@php.net Reported By: patric@liefdeis.com -Status: Open +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: WinXP PHP Version: 4.3.0 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2003-02-02 07:29:38] patric@liefdeis.com When you use glob to check out files in an other dir, it returs the filename without the first char of the dir... let me give you an example: <? foreach (glob("data/*.txt") as $filename) { echo $filename."<br>"; } ?> Returns: ata/file1.txt ata/file2.txt Instead of: data/file1.txt data/file2.txt ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22010&edit=1

« previous php.bugs (#31944) next »