![]() |
|
#1
|
|||
|
|||
Hiding the display of index.php from dir file listingHi Php Masters,
How do I hide the display of index.php from Dir Files Listing ? The php code in index.php is PHP Code:
Thank you extremely much. |
|
#2
|
||||
|
||||
Re: Hiding the display of index.php from dir file listingQuote:
First of all... and this might be a typo, but I'm not sure of the !== operator in the while loop? I assume that you meant !=. With regards to filtering out displaying the index.php file, you can simply add another && to your conditional if statement to exclude viewing the index.php files: PHP Code:
That should do it. __________________
If practice makes perfect and nobody's perfect... why practice? Homepage: http://www.treywhite.com Blog: http://www.treywhite.com/blog.php Web Design Company: http://www.ewebproductions.com |
|
#3
|
|||
|
|||
Re: Hiding the display of index.php from dir file listingso how do I know the number of files in the same dir ?
for example, if there are five files , then the code returns value of 5 . thanks again. |
|
#4
|
||||
|
||||
Re: Hiding the display of index.php from dir file listingWell... you can simply put a counter inside inside the if statement (that's in the while loop). If you want to count the index.php file (but not display it), you'll need to put that inside an embedded if statement within the other if statement... there you can count it as a file by incrementing the counter, but not display it.
Hope that helps. __________________
If practice makes perfect and nobody's perfect... why practice? Homepage: http://www.treywhite.com Blog: http://www.treywhite.com/blog.php Web Design Company: http://www.ewebproductions.com |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 10:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
| Can't view pages from another machine on the Intranet | aevans | Apache Web Server Forum | 9 | 14-May-2004 02:26 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The