Reptiles may reproduce in of three ways (that we're currently aware of).
The first is sexual reproduction with genetic sex determination. This is the form of reproduction that most people are used to, as it's the form that humans employ. A quick review: Human females have 2 X chromosomes, human males have an X and a Y. Each parent gives one chromosome to the offspring. The female always gives an X, the male can donate either, and thus determines the gender of the offspring. Snakes are exactly the opposite. The male has two Z chromosomes, and the female has one Z and one W, thus determines the sex of the offspring. This will be important later.
The second form of reproduction is sexual reproduction with environmentally determined sex determination (ESD). This is the type that the poster was probably refering to. Typically this means temperature dependent sex determination (TSD), which means that the temperature at which the egg is incubated determines the gender of the offspring. This is the case for all crocodilians, many turtles and tortoises and some geckos (like the leopard gecko). There is also increasing evidence that the presence of PCBs may influence sex determination by acting as an estrogen.
The last form of reproduction is asexual parthenogenesis. In this case a female snake or lizard gives birth without male input. Most herp folks have heard about female colonies of fence lizards that reproduce in this manner. The interesting thing is that there are several species of snakes that typically reproduce sexually that have recently been discovered to also reproduce parthenogenically (including the timber rattlesnake - Crotalus horridus). In these snakes the offspring have all been male (remember, female snakes are WZ). Earlier this year a Burmese Python in Holland was the first boid with verified parthenogenic reproduction. Her offspring was a female.
I know this is bit more than you were asking for, but it's pretty darn cool and I just couldn't help myself.
-Z