A 2N7000 is an N-channel MOSFET, a BC547 is an NPN bipolar transistor; they are not the same thing at all. The information on that page is very confused; the schematic shows an NPN transistor but with MOSFET labeling (G,D,S instead of B,C,E). Either one could be used in this circuit, but the value of the 6k8 resistor will need to be adapted depending on the resistance of the LDR.