Check the connection on the oil sending unit. If this car looses oil pressure the spark will shut off. It can cause it to sputter as the pressure dances around the cutoff point. Knocking can be caused by overheating as the oil gets thinner with temp. Also bad plug wires will often be worse when hot. Also check your crank position sensor, these too can be temperature sensitive.