Results 1 to 6 of 6
Threaded View
-
29th Sep 2010, 07:29 AM #1OPmmm mmm!
php: Hide *. php from the listing of files.
Hello, i'm sitting here and playing and trying to make a "pool" to a website in php.
What I'm going is to show the contents of a folder using php. So far I have managed to list all files in selected folder using:
PHP Code:<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$thelist .= '<a href="'.$file.'">«'.$file.'» <br></a>';
}
}
closedir($handle);
}
?>
I'm struggling to really figure this out, because I am completely blank on the field....Daniel Reviewed by Daniel on . php: Hide *. php from the listing of files. Hello, i'm sitting here and playing and trying to make a "pool" to a website in php. What I'm going is to show the contents of a folder using php. So far I have managed to list all files in selected folder using: <?php if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $thelist .= '<a href="'.$file.'">«'.$file.'» <br></a>'; Rating: 5HATERS GONNA probably bring up some valid points considering I am an ignorant little twat so far up my own ass that i blame my problems on everyone and if you criticize me you're automatically wrong.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
i need your help for directory listing
By softpk in forum Web Development AreaReplies: 1Last Post: 17th Mar 2012, 02:26 AM -
Filehost listing
By SlingFile in forum File Host DiscussionReplies: 2Last Post: 22nd Nov 2011, 04:25 PM -
Hide your kids, Hide your wife
By ACE in forum General DiscussionReplies: 7Last Post: 8th Aug 2010, 06:39 PM -
Litewarez'es Top Tip! (Hide your files)
By litewarez in forum Webmaster ResourcesReplies: 2Last Post: 25th Oct 2009, 08:23 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...