php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22010 glob() problems...
Submitted: 2003-02-02 07:29 UTC Modified: 2003-02-03 11:31 UTC
From: patric at liefdeis dot com Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.3.0 OS: WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: patric at liefdeis dot com
New email:
PHP Version: OS:

 

 [2003-02-02 07:29 UTC] patric at liefdeis dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-03 11:31 UTC] patric at liefdeis dot com
Tnx, problem solved!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 19:01:29 2024 UTC