Your Ad Here

 Navigation
Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Books
Sample Chapters
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




 Sponsors
 Links
low cost magazines
programmershelp
dvd information
 Downloads
dzphp editor
EasyPHP
mysql_phpgenerator
php-studio-trial
phpdesigner_7_2_5
phpMyAdmin-3.4.3.2
/phptriad2-2-1
phpxedit_321
rapidphp 2011
WampServer2.1d-x64
WampServer2.1e-x32
xampp-win32-1.7.4-VC6-installer
xampplite-win32-1.7.3
 Misc
Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


Current directory browser


Current directory browser

This example shows how you can list all of the files in a directory , one note of warning is that this displays ALL of the files in the directory , even files which you do not wish a user to see .

 

Code :

<?php
//open the current directory
$directory = opendir('.');
while ($file = readdir($directory))
{
$filenames[] = $file;
}
foreach ($filenames as $file)
{
echo "$file<br>";
}
?>

.
..
words.php
testingnews1.pjhp
phpbyexamples.php
AGS002.GIF
postfilter.php
chitikalinx.zip
PHP-Server-to-Client-with-No-Refresh.php
paycounter.txt
8th.gif
yahoocsv.php
0789724405.gif
showarticles.php
weekimage.php
wiicheat.php
code.php
javable.php
trim.php
newsforge1.php
PHP-Account-Activation.php
oriellynews.php
wordcount1.php
randomemails.php
footer.php
createnews2.php
20011211.jpeg
ipaddress.php
10th.gif
weatherani.php
showhosting.php
mymp3.php
pagehits.txt
dbquote2.gif
improvedmore.php
monthimages.zip
validlink1.php
more.zip
extractzip.php
multitick.php
mxrecords.php
dispno.php
multistock.php
exchangerate.php
dayimages.zip
ourlinks.php
websites.txt
phparticles.php
count1.php
thankyou.php
checkdollars.php
randomurl.php
buildacounter.php
randompass.php
5.gif
sponsors1.php
image-701800-1489263.gif
deletingfromadb.php
randamazimg.php
addtodb.php
quotes2.php
rndarticle.php
newtemplate.php
076454716X.01.TZZZZZZZ.jpg
6th.gif
imageresizing.php
google0fe6b767310532d3.html
perl1.php
2002.gif
adsforphp1.txt
bbcscience.php
info.php
dlir.gif
tetsinggb2.php
mycounter.php
googlesearch.php
phhpocket.gif
ihmusic1.gif
randtitle.php
17th.gif
PHP-Pear-Packages-Why-they-are-so-important-to-php-developers.php
NEWSTYLE.CSS
gdcalendar.txt
sampledb.mdb
jan.gif
oursites.php
aspbanner2.gif
testrss.php
rssfeeds.php
formatsize.php
mysqlhandler.php
vtcphp.php
perl.php
Getting-your-Visitors-Details-Using-PHP.php
gdtype.php
palmstation.php
paycounter.php
createadb.php
metagen.php
vtcphp1.php
checknochars.php
Apache-MySQL-PHP-for-Windows.php
variabletut1.php
sampledb.zip
formsample.php
Get-PHP-pages-indexed-in-the-Search-engines.php
addtodb.htm
dirviewer.php
software.txt
weeklink.php
example2.php
076153055X.01.TZZZZZZZ.jpg
template
flaquotes.fla
script
stopips.txt
technobits.php
displayaccess1.php
sample1.png
tutorialopenfile.php
aspbanner1.gif
simplestats.php
newrss.php
storeimagedb2.php
bubblesort.php
blog
deletingfromadb1.php
phpodp.gif
allthefeeds.php.txt
rssfiles.php
aspbanner4.gif
variabletut2.php
20th.gif
Jun.gif
quotes.php
createnews.php
dieimages.zip
shellcity1.php
cjrotator.htm
httpuseragent.txt
11th.gif
PHP-General-Scripting.php
counter1.txt
downloads.php
randimage1.php
phppocketref.htm
atomictime.php
Developing-State-enabled-Applications-With-PHP.php
phpmodified.php
jul.gif
phparticle7.php
lintodnews.php
29th.gif
pear_manual_en.zip
newfont.php
PHP-Redirect.php
mysqldo.php
integratednews1.txt
ONLINE-the-eBay-Accelerator-Toolkit-for-PHP-PHP-AT-for-the-PHP-IDE-Maguma-Workbench-is-available.php
browserwars.php
Developing-a-Login-System-with-PHP-and-MySQL.php
craps.php
phpsoftware.php
parseslashdot.php
cnn.php
Password-Protection-with-PHP-MySQL-and-Session-Variables.php
linux1.php
randstring.php
dbbanners1.gif
gdemail.php
rndcode1.php
button1.swf
phpresizer1.php
How-PHP-Can-Help-Save-You-Time-And-Mistakes.php
1893115852.01.TZZZZZZZ.jpg
markets.php
ihcomputing3.gif
adsbelow.php
phpextensions.php
ASP-CGI-and-PHP-Scripts-and-Record-Locking-What-Every-Webmaster-Needs-To-Know.php
createnews4.php
phptutorials.php
clickbank1.php
AGS001.GIF
envvars.pl
tickerfind.php
ipaddress.txt
linux2.php
logip.php
addingtoadb1.php
browserdet.php
books.php
example3.php
31st.gif
daycolors.php
buy.php
mysql1.gif
codeigniter
emailme.php
resizefunction.php
fibonacci.php
For-Automated-Sites-PHP-and-MySQL-are-A-Perfect-Match.php
PHP-Image-Gallery.php
graphicyear.pjhp
ping1.php
2004.gif
mp3search.htm
product
quotes.zip
botbar.php
Bring-Your-Web-Site-to-Life-With-PHP.php
yahooquotes.php
style.css
moreover2.php
parse_freshmeat.php
mysql6.gif
validmail.php
logstats2.php
begmysql2.php
displayaccess.php
createagb.php
rnddownload.php
weathercom1.php
coloredcode.php
mozillanews.php
mysqlreplace.php
phptutforeach.php
PHP-Databases.php
qotd1.php
How-to-make-a-simple-form-mailer-with-PHP.php
docjs.php
common.inc.php
nov.gif
randomemailaddress.php
counter1.php
PHP-in-the-Command-Line.php
ipaddress1.php
1861003730.01.TZZZZZZZ.jpg
yahoocsv1.php
Password-Protection-and-File-Inclusion-With-PHP.php
0672317842.gif
paystats.php
azlinks.php
Victoryvisions-The-PHP-Mysql-Company-Complete-website-development-company.php
multistock.txt
testingnews.php
createword.php
phpodp.php
dayimage.php
0764535374.01.TZZZZZZZ.jpg
Mastering-Regular-Expressions-in-PHP.php
phpweekdaycolor.php
22nd.gif
template.php
phparticle6.php
samplecode.txt
cj_88x31_02.gif
dirviewer1.php
adsforphp.txt
dbimages.php
gdfontcount.php
2001.gif
dbquote3.gif
highlighted.php
newstyle.css
1565927699.01.TZZZZZZZ.jpg
testingjokes3.php
digclock.php
phptutarrays.php
bannedwords.php
PHP-Encryption.php
rnddownload3.php
tla.php
serverinfo.php
mycount.txt
metagen.txt
Track-Your-Visitors-Using-PHP.php
Site-Personalization-With-PHP.php
createnews1.gif
2005.gif
javabnews.php
may.gif
topads.php
PHP-Error-Pages.php
Simple-Solution-for-Php-Includes-IFrames.php
ip2long.php
wpipwidget.php
GOOGLE2bab86146e593aae.html
tutorialwritefile.php
json.php
js
stockindex.txt
counter1.dat
displaystats.php
visitors.txt
browserver.php
createnews3.gif
phpe1.php
postFilter.zip
newads.php
4th.gif
mysql2.gif
links.php
Apache-MySQL-and-PHP-for-Windows.php
filepattern.php
aspbanner3.gif
createatable.php
mysql4.gif
os.gif
stockchart.php
whois.php
wired.php
local_195489.xml
Serialize-this-Saving-Objects-in-PHP.php
codebar.php
month.csv
tellfriend.php
wdvl1.php
displayingadb.php
ih2.php
lotto.php
randomfeeds.php
showip.zip
images
php-small-trans-light.gif
moreoverfeed1.php
gallery.php
contest
phptutifstatement.php
ads
uksearchframes.zip
28th.gif
imageresizer.php
search-results.php
codecats.php
testingourdb.php
metatag.php
testingjokes1.php
cj.txt
randomdice.php
076152729x.gif
.DS_Store
mysqlselect.php
test.csv
bbcnews.php
gdcounter.php
076152729X.01.TZZZZZZZ.jpg
begmysql1.php
freediskspace.php
phpgenerator.php
samplemails.txt
ihmusic2.gif
testingjokes.php
webpage.pl
showarticle.php
ihcomputing1.gif
logipsmysql.php
atozlinks.php
index.php
phpe.php
validemail.php
weatherde.php
jokesadmin.php
amazonuk.zip
allcode.php
dat
addlink.php
addingtoadb.php
aug.gif
testingnews1.php
rdfread.php
mp3searcher.zip
uksearch.zip
metasearch.php
More-Autoresponders-With-PHP.php
lottery.php
randomletter.php
timegreet.php
buildacounter1.php
oswars.php
emailverify.php
yahoochart.php
morev1.php
cjrotator1.php
graphicmonth.php
dbimages1.gif
CyberCrawl_0.1alpha-preview.zip
ipcount.php
PHP-Email.php
Clickbank-Security-Using-PHP.php
ffalinks.zip
mysqlfetcharray.php
cnnsports1.php
readme.txt
adoconn.php
date.php
metasearcher1.php
ihservicesjokes
abcfeeds.php
20011210.jpeg
createnews.gif
0735709971.gif
14th.gif
filesize.php
javabout1.php
testingjokes2.php
news1.gif
createzip.php
cosource.php
dbbanners2.gif
jokes2go1.php
redirection.htm
timesnews.php
dnsfunctions.php
bookstore.php
randamaztext.php
palmpower1.php
mp3searcher2.php
createagb3.php
12th.gif
clock1.php
0672318040.01.TZZZZZZZ.jpg
phparticle1.php
cartoongasp.php
currentdir.php
rad2degrees.php
mysqlinsertselect.php
javable1.php
counter3.dat
directory.gif
software1.txt
sitereview1.php
icqstatus.php
espnsoccer.php
convpounds.php
adserver
5th.gif
tetsingjokes1.php
PHP-Form-Series-Part-1-Validators-Client-side-Validation.php
linux3.php
moreoverfeed.php
images.sql
phptutcomments.php
amazoncontextual.php
testinggb.php
parsefreshmeat.php
simple-cms-system.php
ffaaddlink.php
1st.gif
sampledb.dsn
moreover3.php
css
HTACCESS-Wrappers-with-PHP.php
manuals
phptutswitch.php
27th.gif
img
mysqlinsertdelayed.php
scripts
logipmysql.php
mar.gif
palmpower.php
adsabove.php
6.gif
useragent.php
shellcity.php
news.php
mysqlinsert.php
logstats3.php
gdsizeimage.php
php-password-function.php
test.php
clickbank.txt
ih3.php
0672319144.01.TZZZZZZZ.jpg
openads.php
phppear.php
2.gif
testing.php
php-small-white.gif
wired1.php
news.gif
cjrotator.php
split.php
portscan.php
example5.php
admin
phparticle3.php
Autoresponders-With-PHP.php
Quick-Intro-to-PHP-Development.php
degtorad.php
TEXT.CSS
dec.gif
netgeo.php
tetsinggb1.php
0672317842.01.TZZZZZZZ.jpg
error_log
phparticle5.php
multiticker.php
randomxml.php
browserver.htm
image1.php
sendmail1.php
9th.gif
moreover1.php
linkbanner2.gif
1565924347.01.TZZZZZZZ.jpg
randomnumbers.php
PHP-Scripts-Dont-Have-to-End-in-PHP.php
gdemailaddress.php
120600file.php
wordcount.php
dictionary.php
.htaccess
calendargd.php
searchengine1.php
httpuseragent.htm
dbbanners3.gif
lib
misc.php
year.php
PIM-Team-Case-Study-Creating-Text-Effects-With-PHP-and-GD.php
30th.gif
mp3searcher.htm
morev.txt
phpgtk1.php
odp.php
tutad.php
javabout.php
mp3searcher1.php
vikings.php
wordpress.php
quoteofthe.php
phpcounter1.txt
dbbanners.php
PHP-Dynamic-Content.php
loancalc.htm
antileech.php
mysql5.gif
PHP-On-The-Fly.php
19th.gif
createnews1.php
gpl.txt
sponsors2.php
config
dbcounter.php
navbar.php
myfile.txt
dbimages2.gif
2003.gif
PHP-and-Cookies-a-Good-Mix.php
amazonukcontextual.php
grcount.php
24th.gif
reversesort.php
1893115569.01.TZZZZZZZ.jpg
graphicyear.php
mysql3.gif
oct.gif
processorinfo.php
count.txt
showdownloads.php
quotes.htm
paypal.test.php
dbquote.php
addtoadb1.gif
myscripting.xml
linenumbers.php
templatephp.php
newsforge.php
AGS003.GIF
sep.gif
loancalc.php
testcode.php
4.gif
logo.php
ranomdbimage.php.txt
getmeta.php
countrycode.php
Some-PHP-functions-you-must-know.php
15th.gif
gdexists.php
chitikalinx0.2.zip
jokes2go.php
quotes.csv
lincentop.php
mysql.php
robots.txt
gdexist.php
wdvl.php
faq
PHP-Templates.php
phpcurl.php
metagen.zip
grcalendar.php
0735709971.01.TZZZZZZZ.jpg
file.txt
linuxcentral.php
pearrss.php
rss.php
metagen.htm
counter2.dat
logstats1.gif
cj.csv
gdbutton.php
showlinks.php
javabout2.txt
createnews2.gif
tutorialcreatfile.php
stockchart.txt
yahooweather.php
weathercom.php
phptutforloop.php
cgi-bin
46860file.php
calendarimages.zip
phpinfo.php
phpmyadmin.php
sitemap.xml
taskbar.zip
oddoreven.php
onion.php
linuktodaynews.php
phparticle4.php
clickbankinc.txt
yahoocurrency.php
2nd.gif
gdtext.php
23rd.gif
Maguma-has-integrated-support-for-the-eBay-Acellerator-Toolkit-for-PHP-PHP-AT-in-their-PHP-IDE-Maguma-Workbench.php
appcounter.php
manuals.php
logstats1.php
showcode.php
flaquotes.swf
javascript1.php
vtcmysql.php
uspop.php
testingnews2.php
statspay.php
sampledb.ldb
bebmysql1.php
strlen.php
getage.php
specialchar.php
PHP-Auto-surf-Websites.php
logbrowsers.php
sitereview.php
links.sql
mysqljoin.php
appwatch.php
0672319144.gif
logstats3.gif
createagb1.php
AGS005.GIF
cookiecount.php
ajax.php
storeimagedb3.php
logo.png
palmstation1.php
marketcsv.php
PHP-Files.php
downpage.php
monthpic.php
tutorialcreatefile.php
stats.gif
example6.php
tutorials.php
viewzip.php
mysqlloaddata.php
7th.gif
3rd.gif
PHP-my-favorite-Server-side-Programming-Technology.php
tutorialreadfile.php
countimages.php
apr.gif
AGS004.GIF
gcounter.php
myscripting.rss
randpassword.php
26th.gif
odp.pl
moreover.php
ipvisitors.php
morev2.php
mysqlcount.php
lincennew.php
fileatts.php
worldpop.php
createpaycounter.php
PHP-User-Login-Authentication.php
banned.txt
network.php
lastaccessed.php
quizeasy.htm
netping.php
ffalinks.txt
createword1.php
0672319241.01.TZZZZZZZ.jpg
21st.gif
18th.gif
integratenews.php
feb.gif
forum
training.php
simplequiz.htm
0130893986.01.TZZZZZZZ.jpg
randombanner.php
searchmeta.php
googleres.php
25th.gif
drinksrecipes
randimages.php
vtcphp2.php
strreplace.php
dbquote1.gif
example1.php
example4.php
moreover.txt
createagb.gif
font.jpeg
ihcomputing2.gif
Create-a-Simple-Effective-PHP-Form-for-Your-Web-Site.php
multicount.php
webref1.php
paypal.ipn.php
Creating-Dynamic-Website-Content-with-PHP-MySQL.php
1861002963.01.TZZZZZZZ.jpg
displayadb.php
qotd.php
mysqldelete.php
news1.php
userinfo1.php
samplechapters.php
randomamaztext.php
topbar.php
countdowndates.php
clickbank.zip
rndcode.php
findurls.php
ourimages.php
showtables.php
logstats2.gif
userinfo.php
javascript.php
1861002963.gif
PHP-Sessions-Cookies.php
sky01_120x600.gif
tickerfind1.php
rss2.php
bookmark.php
chitikalinx.php
mathoptut.php
sponsors.php
16th.gif
Make-a-Search-Engine-For-Your-Website-With-PHP.php
MySQL-Database-Handling-in-PHP.php
dictionary1.php
data.json
13th.gif
upgrade.txt
storeimagedb.php
fornext.php
0764535617.01.TZZZZZZZ.jpg
3.gif
changecase.php
1.gif
dzsoftphp.php
amazon.php
gcounter2.php
ihsample.php
currency.php
PHP-is-10-years-old.php
Protecting-your-HTML-and-PHP-Source-Code.php
dbcountergr.php
createagb2.php
usingincludes.php
gdbarchart.php
tmdomainverification.html
phod.php
aspbanner5.gif
Scounterfile
samplecontent.php
phpclock1.php
0735709211.01.TZZZZZZZ.jpg
hosting.php
hamweather.php
amazoninline.zip
simplequiz.php
createnews3.php
rnddownload1.php
digitalclock.php
validlink1.txt
linweeknews.php
phpcreatemysql.php
example.php
addtoadb.gif
includes
phplogo.php



Books
 Sponsors


 Random Code
Creating a table in a MySQL database(database)
Size of a webpage with PHP and cURL(internet)
hexadecimal to decimal conversion(math)
 Random Article
  Network
Programming resources
Tutorials directory
Hosting resources
ASP site
Domain names
Progged
Maxi directory
bigarticle : free articles
A Code
Code N Tutorials
Get PHP
Programmers help




beginners PHP Copyright © 2004 onwards by beginnersPHP.