+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
Web Development Thread, PHP script help in Coding and Web Development; No prob, maybe I'm talking nonesense (just glanced over the code, not really tried it out). It looks like it's ...
  1. #16
    Friez's Avatar
    Join Date
    Dec 2006
    Posts
    839
    Thank Post
    22
    Thanked 22 Times in 21 Posts
    Rep Power
    23
    No prob, maybe I'm talking nonesense (just glanced over the code, not really tried it out). It looks like it's been obfusicated a bit, either that or he uses really horrific naming conventions so it's not that easy to pick apart in a rush (although I could probably totally figure it out if I sat down and actually looked at it).

  2. #17

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,625
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    Quote Originally Posted by FN-Greatermanchester View Post
    Would anyone know how to change the order it lists the items in descending order?
    Does PHP have an array.sort() or similar?

    --
    David Hicks

  3. #18
    Friez's Avatar
    Join Date
    Dec 2006
    Posts
    839
    Thank Post
    22
    Thanked 22 Times in 21 Posts
    Rep Power
    23
    Quote Originally Posted by dhicks View Post
    Does PHP have an array.sort() or similar?

    --
    David Hicks
    Several!

    sort Sort an array
    rsort This function sorts an array in reverse order (highest to lowest).

    asort Sort an array and maintain index association
    arsort Sort an array in reverse order and maintain index association

    ksort Sort an array by key
    krsort Sort an array by key in reverse order

    And if you want to roll your own:

    uasort Sort an array with a user-defined comparison function and maintain index association
    uksort Sort an array by keys using a user-defined comparison function
    usort Sort an array by values using a user-defined comparison function

  4. #19

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,971
    Thank Post
    886
    Thanked 1,715 Times in 1,481 Posts
    Blog Entries
    12
    Rep Power
    450
    Thanks guys i am going to have a play tomorrow.

    Just another question, does anyone know how to make it not display hidden folders?

    Thanks

    Z

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Looking for PHP blog script which does not require database
    By ajbritton in forum Web Development
    Replies: 10
    Last Post: 9th December 2010, 07:50 AM
  2. PHP script to downlod mail
    By russdev in forum Web Development
    Replies: 2
    Last Post: 20th January 2008, 03:22 PM
  3. Simple PHP script for notes about students?
    By ChrisS in forum Scripts
    Replies: 1
    Last Post: 29th November 2007, 10:25 AM
  4. PHP IMAP check mail script
    By netadmin in forum Web Development
    Replies: 2
    Last Post: 22nd April 2007, 03:47 AM
  5. PHP flat file database script
    By ajbritton in forum Web Development
    Replies: 3
    Last Post: 26th October 2006, 08:51 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •