Thread: Displaying the contents of your directory

Results 1 to 10 of 10
  1. #1 Displaying the contents of your directory 
    Banned
    Join Date
    Apr 2011
    Age
    26
    Posts
    1,363
    Thanks given
    370
    Thanks received
    184
    Rep Power
    0
    Removed. Ruby is claiming I leached someone elses code, when I clearly gave credits.
    Reply With Quote  
     

  2. #2  
    Adobe

    Dreamweaver's Avatar
    Join Date
    Jan 2010
    Posts
    1,067
    Thanks given
    38
    Thanks received
    149
    Rep Power
    246
    Quote Originally Posted by Refactored View Post
    If there's 4 files, why does it only show 2...?
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Apr 2011
    Age
    26
    Posts
    1,363
    Thanks given
    370
    Thanks received
    184
    Rep Power
    0
    Quote Originally Posted by Dreamweaver View Post
    If there's 4 files, why does it only show 2...?
    I've been trying to figure that out...

    I believe it's because it's counting the files from my "/" directory, which has 4.

    Fixing right now.

    EDIT:

    It's not a directory problem... I don't know why, but it adds 2 to it no matter what. How about we just delete it? Lol.
    Reply With Quote  
     

  4. #4  
    puts "Hi "+name+
    Ruby's Avatar
    Join Date
    Apr 2012
    Age
    28
    Posts
    346
    Thanks given
    42
    Thanks received
    135
    Rep Power
    66
    Besides all of the whole not working business, why are you using print() lol? It's slower than echo and only takes on a single perameter at a time. The logical choice would be to use echo unless you needed the function to return 1, then you'd use print. Which you don't need, lol.
    Professional website developer
    Almost a decade experience
    Bespoke website templates
    CMS & forum themes
    Future proof & secure scripts
    We should chat...
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Apr 2011
    Age
    26
    Posts
    1,363
    Thanks given
    370
    Thanks received
    184
    Rep Power
    0
    Quote Originally Posted by ` Ruby View Post
    Besides all of the whole not working business, why are you using print() lol? It's slower than echo and only takes on a single perameter at a time. The logical choice would be to use echo unless you needed the function to return 1, then you'd use print. Which you don't need, lol.
    I don't really know why I was using print... guess it's because I never use it...? xD
    Reply With Quote  
     

  6. #6  
    puts "Hi "+name+
    Ruby's Avatar
    Join Date
    Apr 2012
    Age
    28
    Posts
    346
    Thanks given
    42
    Thanks received
    135
    Rep Power
    66
    Or because you leeched it?

    [Only registered and activated users can see links. ]
    Professional website developer
    Almost a decade experience
    Bespoke website templates
    CMS & forum themes
    Future proof & secure scripts
    We should chat...
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Apr 2011
    Age
    26
    Posts
    1,363
    Thanks given
    370
    Thanks received
    184
    Rep Power
    0
    Quote Originally Posted by ` Ruby View Post
    Or because you leeched it?

    [Only registered and activated users can see links. ]
    I leached part of his code, yes... but I gave credits?
    Reply With Quote  
     

  8. #8  
    puts "Hi "+name+
    Ruby's Avatar
    Join Date
    Apr 2012
    Age
    28
    Posts
    346
    Thanks given
    42
    Thanks received
    135
    Rep Power
    66
    You only declared the $currDirectory variable and you're not calling it anywhere. Everything else is his code with the comments removed. Lol.
    Professional website developer
    Almost a decade experience
    Bespoke website templates
    CMS & forum themes
    Future proof & secure scripts
    We should chat...
    Reply With Quote  
     

  9. Thankful users:


  10. #9  



    Join Date
    Dec 2010
    Posts
    831
    Thanks given
    257
    Thanks received
    118
    Rep Power
    204
    Leeching and acting that you have made all by yourself isn't good way to gain reputation.
    Reply With Quote  
     

  11. #10  
    Registered Member

    Join Date
    Oct 2008
    Posts
    865
    Thanks given
    75
    Thanks received
    56
    Rep Power
    483
    Quote Originally Posted by Refactored View Post
    Removed. Ruby is claiming I leached someone elses code, when I clearly gave credits.
    You basically posted someone else's code. If you knew what was actually going on in the code you posted, you would know why you had 4 files/directories but it was only showing 2 files/directories. The script doesn't show files/directories with a . in the front, (in your case it was hidding the . and .. directories)
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Removing the music tab contents
    By Chris_ in forum Help
    Replies: 4
    Last Post: 10-09-2012, 08:22 PM
  2. Quoting Original Topic Contents
    By Roboyto in forum Spam
    Replies: 6
    Last Post: 07-13-2011, 11:52 PM
  3. Model anInt165 directory and anInt200 Directory
    By Streax in forum RS2 Client
    Replies: 1
    Last Post: 06-14-2010, 11:08 PM
  4. My shoutbox file contents.
    By iPhoneGuy in forum Application Development
    Replies: 3
    Last Post: 07-08-2009, 11:29 AM
  5. 317 cache contents
    By HcoJustin in forum Downloads
    Replies: 5
    Last Post: 04-19-2009, 06:26 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •