Categories




PreviousNext
Glob() function to find files    
 Send mail Views:231
Belongs to : PHP
Facebook Bookmarkbookmark this pageStumbleupon Bookmark 

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
)

funny pictures and videos
funny pictures and videos
online games
embed code


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

User Comments


Add NEW Feedback:

Name :     Email :

Website Monitoring Web hosting by Hiox India Contact Us   Privacy Policy   Terms and Conditions