How does light result in ATP production in an anoxygenic

How does light result in ATP production in an anoxygenic phototroph? In what ways are photosynthetic and respiratory electron flow similar? In what ways do they differ?