PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to write a code to list the all subdir of the main path directories and also sort them by date ... i search the net and came up with this code :
its doing the job perfectly, but there is 2 major problems :
1- it also lists the main directories ($Pathc directories) .
2- the current sorting is descending, i can't change it to ascending.
also if possible i want to link the list items to $path/$file...
1.to avoid the $pathc including in the list change the first if condition as
if ($list != "." && $list != ".." && $list != "index.php~" && $list != "$pathc")
2.to sort in ascending order try sort() instead of asort() or refer www.php.net for some other functions.
learnerabn wrote:
1.to avoid the $pathc including in the list change the first if condition as
if ($list != "." && $list != ".." && $list != "index.php~" && $list != "$pathc")
2.to sort in ascending order try sort() instead of asort() or refer http://www.php.net for some other functions.
Thanks for your reply ...
made the changes , but nothing happened ... it still includes the $pathc directories ...
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.