ok boys and girls, here's the new contest: make a shell script in PHP that tells the user the bare minimum while punishing them if they mess up 😃 a few rules:
No Ternary ( ?: ) operator
no mention of '/dev/stdin' anywhere. (hehehe)
There must be at least three places where the script grabs information
The script must delete at least one file always [/list=1]
have fun, i'll add more rules as i see fit. 😃
Hmm, any more clarification?
its basically something to torture the user. a little fun to disect the tedium.
The "bare minimum" by current rules would be the null string.
I doubt I get it. Moon's bored, so we write him a script? Ah, well...
http://daleco.biz/pig.php
Doesn't yet fit the requiments, exactly, tho 😃 😃
weed:
Originally posted by Moonglobe 4. The script must delete at least one file always
dale: no 😃
Originally posted by Moonglobe weed:
But what's that got to do with "telling the user" anything?
tha....wha.....ok nevermind, i came up with this in five minutes after working on a shell script for 2 hours..... and deciding to code some DWIM stuff in. guess ill just forget this then...