note 67131 added to function.scandir

From: Date: Sat, 03 Jun 2006 18:08:54 +0000
Subject: note 67131 added to function.scandir
Groups: php.notes 
Request: Send a blank email to php-notes+get-113136@lists.php.net to get a copy of this message
i really need a function for scandir to exclude the file extension (".php",".txt",etc) and to make a href's in other words lets say i have a directory called "x" and in it i have 3 files (a.php, b.php, c.php)... if i use the searchdir function it will give me this: Array ( [0] => . [1] => .. [2] => a.php [3] => b.php [4] => c.php ) and i want to look like this (html code): <a href=index.php?op=a>a</a><br> <a href=index.php?op=b>b</a><br> <a href=index.php?op=c>c</a><br> a <- link to index.php?op=a b <- link to index.php?op=b c <- link to index.php?op=c understand? i'm kinda new at php, i started 1 month ago and i had no teacher :) thank you ---- Server IP: 193.226.19.70 Probable Submitter: 86.123.172.148 ---- X-Spam-Status: No, hits=4.0 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_20_30,HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.scandir.php Edit -- http://master.php.net/note/edit/67131 Del: integrated -- http://master.php.net/note/delete/67131/integrated Del: useless -- http://master.php.net/note/delete/67131/useless Del: bad code -- http://master.php.net/note/delete/67131/bad+code Del: spam -- http://master.php.net/note/delete/67131/spam Del: non-english -- http://master.php.net/note/delete/67131/non-english Del: in docs -- http://master.php.net/note/delete/67131/in+docs Del: other reasons-- http://master.php.net/note/delete/67131 Reject -- http://master.php.net/note/reject/67131 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#113136) next »