0

Hi..
How to count no of files in a directory which is in another machine?
I used the following code.But it is not working.

<?php
 $dir_path ="file://192.168.0.138/img/$sub_code/$sub_code".N."$churunano/*.*";
  $count = count(glob($dir_path));
     $files = glob($dir_path);
     ?>



 The above code returns the count as 0.
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by divyakrishnan
0

It won't work like that glob(); only works on the servers local filesystem, however.

0

Is their any way to count the files in network share?

The "img" folder in 192.168.0.138 is shared.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.