#22010 [Fbk->Csd]: glob() problems...
| From: | patric at liefdeis dot com | Date: | Mon, 03 Feb 2003 17:31:41 +0000 |
| Subject: | #22010 [Fbk->Csd]: glob() problems... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31995@lists.php.net to get a copy of this message | ||
ID: 22010
User updated by: patric@liefdeis.com
Reported By: patric@liefdeis.com
-Status: Feedback
+Status: Closed
Bug Type: *Directory/Filesystem functions
Operating System: WinXP
PHP Version: 4.3.0
New Comment:
Tnx, problem solved!
Previous Comments:
------------------------------------------------------------------------
[2003-02-03 05:10:47] edink@php.net
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
------------------------------------------------------------------------
[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