Yes.phhpro wrote:@rava: With all due respect, ever heard of command line arguments?
That was an alternative to my script; but my version intrigued me more, since I could use the folders reading script parts and adopting them into creating down load links to other sites and data/files as well...The list of available languages doesn't really change that many often, so to speed things up, just hard-code the lot into the script
That's rough, buddy, to say it so blunt. Bot still, you are right.If no match, spit an error, else fetch the requested version, done. No need to hack anything at all. Never let a user do your job by telling them to edit. Users are dumb, Proggers are smart. 8)
For now I just hard code it into my scripts, (mainly due to not enough free time) since I would only download the German or UK version anyway, and anyone who wants another version can hard code that into the script her/himself...
Or, well, maybe they can't.Never let a user do your job by telling them to edit. Users are dumb, Proggers are smart. 8)