Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

How to display the Files in a specified Folder?

2/23/2012

1 Comment

 
<?php
//path to directory to scan
$directory = "js/";
 
//get all files from the directory
$files = glob($directory . "*.*");
 
//print each file name
foreach($files as $file) {
    echo "<br>".$file;
}
?>
1 Comment
Willda link
9/28/2012 12:48:54 pm

is before long

Reply



Leave a Reply.

    Archives

    April 2012
    March 2012
    February 2012

    Categor

    All
    Ajax
    Api
    Cross Site Scripting
    Css
    Curl
    Design Patterns
    Drupal
    Exception Handling
    Htaccess
    Html
    Javascript
    Jquery
    Json
    Linux
    Mysql
    Oops
    Php
    Regular Expressions
    Web 2.0
    Webservices
    Wordpress
    Xhtml

    RSS Feed

Powered by Create your own unique website with customizable templates.