Okay thanks, I did get something wrong.
Then I will test your script when I got some more time. I am currently running a faucetbox Faucet but I am looking for a good alternative.
I don't want to run a bitcoin node extra for the faucet. Is there a way to request the API of an exchange (e.g. Cryptsy) in order to withdraw the bitcoins or alts over it?
You don't need to run a bitcoin node for faucet, payment hanldle by AsMoney for bitcoin and altcoins.