Categories




PreviousNext
Glob() function to find files    
 Send mail Views:88
Belongs to : PHP
Facebook Bookmarkbookmark this page Digg Bookmark Delicious BookmarkStumbleupon Bookmarkshare with orkut Post to Google Buzz

Glob() function to find files

If you are searching some files using some patterns,you can use this function

For eg if you want to search files with extension .php use the following code,


$files = glob('*.php');
print_r($files);


It will output something like

Array
(
[0] => phptest.php
[1] => pi.php
[2] => post_output.php
[3] => test.php
)

Pictures and Videos
Online Calculators
embed code


By - Rekha, On - 2010-06-17
Send This
PreviousNext

User Comments


Add NEW Feedback:

Name :     Email :

 Server Monitoring Web hosting by Hiox India Privacy Policy Terms and Conditions