Serbian Republic, Bangladesh and Belarus

Discussion in 'Paper Money' started by Daggarjon, Mar 19, 2009.

  1. Daggarjon

    Daggarjon Supporter**

    its a diretory listing of all files, including hidden files (the a flag right?)... but not sure what the R flag is for ...

    basically i have no idea
     
  2. Avatar

    Guest User Guest



    to hide this ad.
  3. mrbrklyn

    mrbrklyn New Member

    R is recursive...see the output in BASH. You would compile that output into a single file or put it in an array. Then use a variation of the random function and take the int() of that output and read the entry for a single line. That is your URL of your random image.

    Ruben
     
  4. Daggarjon

    Daggarjon Supporter**

    i understood the recursive R, ive seen the word BASH, and know its a command, and know most of the words you said.. but the meaning and execution are alien to me.... im telling ya... i am a total noob with this lol
     
  5. mrbrklyn

    mrbrklyn New Member

    What OS are you running?

    Ruben
     
  6. Daggarjon

    Daggarjon Supporter**

    non-windows lol not sure if its unix or linux, but i know its not windows
     
  7. mrbrklyn

    mrbrklyn New Member

    open a terminal or xterm and type

    ls -alR <ENTER>


    Ruben
     
  8. Daggarjon

    Daggarjon Supporter**

    open a what on where??

    my pc os is xp sp3... your asking about the server os aint ya??
     
  9. mrbrklyn

    mrbrklyn New Member

    Your running Linux

    68.178.232.96 Linux Apache 18-Mar-2008
     
  10. Daggarjon

    Daggarjon Supporter**

    errr okie-dokie ... if you say so :D

    im trying to figure out which ip that is :D
     
  11. mrbrklyn

    mrbrklyn New Member

    yes - how do you talk to your server?
     
  12. Daggarjon

    Daggarjon Supporter**

    i use my ftp ... its not 'my' server... its hosted elsewhere
     
  13. Daggarjon

    Daggarjon Supporter**

    i tried entering a comand into the ftp command line...
     
  14. mrbrklyn

    mrbrklyn New Member

    Is see that. You know what - shoot me an email ruben@nylxs.com
     
  15. Dave M

    Dave M Francophiliac

    Okay, all this discussion got me going. I have the code to do this if you're interested. It assumes you have some way to select (via regex) a pattern of the correct directories. In my site, for example, I have all my images in directories named *****/images/*.jpg, whereas thumbnails are in ****/thumbs/*.jpg/ So if there's some similar pattern to your directories, it can be done. Drop me a PM and I'll send you the code. It's php, so will work on your server.

    Dave
     
  16. Daggarjon

    Daggarjon Supporter**

    Ruben would cringe i can tell lol but i have completed a 3 disk set on learning html .. and am now learning the basics to PHP. nothing super advanced, but everything has to start somewhere. hopefully, when i am done with this PHP book, i may be able to better understand and possibly expand existing code found on the internet :D
     
  17. mrbrklyn

    mrbrklyn New Member

    get putty.exe and see if you can connect, but I think you can't


    FTP is pretty insecure.

    Ruben
     
  18. mrbrklyn

    mrbrklyn New Member

    The only problem with starting with PHP is that it teaches bad programming habits that are though to break. PHP is a powerful widget tool for the Net and is, as a fact, what coin talk uses. But it think I'd rather teach people the principles of coding first using something like Perl which, although also easier to screw up, does have all the basic coding principles available including real scope, lexical scoping, procedural coding, object design, API building, etc.

    Ruben
     
  19. Daggarjon

    Daggarjon Supporter**

    i figured you would belive something like that ...and i am all for learning the basics FIRST. To do anything right, if the foundation is rocky, anything that comes next can be a real mess. BUT.... perl is not easy to learn ...and reading books on it is daunting to dang near impossible when you dont know the code... at least for me. I would love to take classes to learn it, as i know i would do better... but with the wife out of work, its nothing i could do to help my hobby.

    I was reading through some chapters in the PHP book ... and either the book is wrong, or something else is wrong. I would type the code exactly as it apeared in the book, up it to my server, open the page... and it wouldnt display what the book said it should. Tough to learn what is right when that happens lol
     
  20. mrbrklyn

    mrbrklyn New Member

  21. Daggarjon

    Daggarjon Supporter**

    Ok .. due in no small part to the help of Dave M, i got the Random image generator working. The same script is going to count unique files for me as well, but i have to re-work the code, rename a bunch of variables ect... and it should work. But since both scripts will in essence be creating large arrays, it might slow things down a bit.. so i shall see if i leave them both on the same page.

    For now... the random image generator is now running on my home page :D

    Until i finish re-working my site for faster viewing, there are only 100-200 images being pulled from for the random generator, but as each page is fixed, they will auto populate the 'pull' list :eek:

    Thanks again for the help Dave!!! And Ruben .. thanks for that link. I didnt understand much of any of it :D i think i will stick with PHP for now :thumb:
     
Draft saved Draft deleted

Share This Page