PHP scripts and programs for Beginner to Master

php programs, php ready to use scripts & functions, css tutorials, html, javascripts, ajax examples for Beginner to Master


You might require this code which lists all files from a specific directory in php. It shows the files from a folder you want.
Even you can specify which files to ignore eg. when showing image you dont want to show thumbs.db file, so you can specify in the code neglect thumbs.db file.
So your code will show all files except thumbs.db 

This is a very basic program, you can extend it to a level you want as per your requirement. If you need some help ask me, if possible definitely i will help.

In the below code there is one array $exclude, in this array you specify the files which you want to ignore in your final output, so it will not be shown. And just modify the if loop.

If you know any other way to do the same then comments are always welcome.
Dont forget to tell your friends about

I'm reading: List files of a Directory in php or List files of a folder from php codeTweet this!


i m The Evil Hackerz

If u like to get lots of traffic and high alexa rank with high page rank and also ur site will be submitted to 10000 sites and 500 search engines like yahoo,google etc...
then contact me
(My contact is in my site)

I have do seo service for lots of sites..
rgt now i m doing seo service for

in 2 week this site get 8-9 lakhs jump in alexa rank ... means 5000-7000 visitor/day and 20000 pages view.

My payment is cheap than any other seo expert.
to know more abt benefit of seo services and rates... mail me

Post a Comment