Web Analytics Made Easy -
StatCounter NEED glob function for remote files - CodingForum

Announcement

Collapse
No announcement yet.

NEED glob function for remote files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NEED glob function for remote files

    I am not a very experienced user. What I want to do is I have a portion of a file name (s12345_101_*.jpg) and I am trying to get the actual file name so I can view the file. So, I would normally us $temp = glob($name); and it would return the actual file name to me (s1234_101_22.jpg). So, my problem is the files are now on a remote server. I have access to the directory, I just do not know how to write a glob equivalent function for remote directory use.
    Any ideas????? Thanks in advance!!
    Last edited by rocky10; Oct 4, 2006, 05:49 PM. Reason: title was vague

  • #2
    glob() won't work on remote files, and thank goodness for that, considering the security risks associated with that prospect.

    Comment


    • #3
      Originally posted by Fumigator View Post
      glob() won't work on remote files, and thank goodness for that, considering the security risks associated with that prospect.
      I under stand this.... I would like to write a glob like function which would allow me perform these function on the remote directories which I have access to. Thanks!

      Comment


      • #4
        You can use the FTP nlist command and use regex to check the results.

        Comment

        Working...
        X