I added notes to all of the above countries the last day or so... Belarus - Added P-4 and P-5 Bangladesh - Added P-5, P-25 and P-40 Bosnia & Herzegovinia - Added P-134, P-135, P-137, a P-139 replacement note and P-150 take a look here for links I also spent half the day today setting up this random image generator on my site.. every time the home page refreshes, the image changes toa randomly drawn image i couldnt believe how long it took me to figure out the code lol my next project is a code nightmare.. not sure how that will work out Thanks for looking
LOL you bet me to it was going to make a start on my Belaruse yesterday but got carried away sorting and posting cents :goofer: Great looking notes mate as usual :high5:
De Orc...you have to watch Daggarjon...LOL he has an uncanny way to sneak up on you and just blow your mind with some Great notes!! Nice one's friend!! RickieB
Thanks i wanted to set it up where it would select from very specific directories. For each country, i have several sub-directories...i have a folder for thumbnails and a folder for the larger dpi files. I wanted to set up the random image generator to randomly select images only from the larger dpi directories. If it drew from the thumbnail directory, the image would be way to small and would get pixalated in the output of this image generator. But i couldnt figure out how to write the code to be very selective for the the pool to draw from. What i was forced to do, at least until i can figure out how to do what i described, is to create a sample directory, and place images in there. It duplicates the files i need to keep stored on my server, but for now its all i got. I just have to remember to adjust the code when i add new files to this folder lol if your interested, i can give you the code i used...
Tell you whats fun just go to your home page and keep pressing the refresh LOL the Biafran has come round more than any other note so far I lie its now the belarus puddy cat
I am, I may have a use for it some time I'm just heading out the door for the weekend, so I'll get in touch when I return, thanks. Dave
Ruben .. i am by far the least knowledgeable scripter on the planet!!! The best i can do is BASIC The script though is in PHP i believe... only because it says so at the very begining lol what would take you 5 to 10 minutes.. take me hours upon days to try to decipher... and my deciphering rarely works lol i just got plain lucky on this little project
You can create a list of all the directories and the files, one line for each file and then pick a random number and read in that line. But truthfully, if I was going to do something like that, I'd take all the photos off the file system and throw them into MYSQL and read them out. Ruben
right now, there are only 20 images in the folder the script refers too so there if i can ever figure out how to make it scan all my images, there will be a wider assortment - and fewer duplicates lol
i cant reinvent the wheel as to how my site is structured.. not without 3 years or rewriting... and i cant list all the directories, as there are well over a hundred - 1 for each country (and additions happan all the time). but each folder i want to draw from is the same name in every country directory.... similar to this -top folder 1 --sub folder a --sub folder b -top folder 1 --sub folder a --sub folder b -top folder 3 --sub folder 1 ---sub folder a ---sub folder b --sub folder a --sub folder b -top folder 4 --sub folder a --sub folder b ect... sub folder b in each instance - regardless of which level its on, is where i would need to draw from. With every sub folder b being the same name, i though it wouuld be easy to do a wildcard search for just that folder name and.... i have no idea what you said about the mysql lol
there is sample code on the net for dealing with the random image generator in the general. With Embperl I'd just write it straight as a Perl Module and display the entire result. The script would generate HTML instead of embedding the code into the HTML externally. Doing a File Tree Walker in Perl is fairly easy as there is a ftw and there is this http://www.perl.com/doc/manual/html/lib/File/Find.html http://perladvent.pm.org/2006/2/
You don't have to. If your listing the directories by hand in the code there is no need to rearrange everything. But a File Tree Walker to generate your list of files is very useful. Ruben
really it isn't. If I showed you you would immediately understand. What does ls -alR ./ output on the command line? Ruben