Phototransistor as a pull-down in digital circuit
Agreed, just be careful using the really high resistance values.  100k+ and beyond leaves your circuit more vulnerable to noise injection.  It takes a bit of experimentation like the above responses have indicated.