The picture was soon being shared thousands of times, with people reflecting how often even basic living standards are taken for granted.
Daniel's home was burned down and his father died. He is often seen begging with his mother in the area, but shows determination to get an education.
"As a student, it gave me an inspiration to work harder. I seldom go to coffee shops to study, but this kid just hit me," said Torrefranca.
One of Daniel's teachers, Rosalina Detuya, described him as "a happy child".
"He is also intelligent and actually answers during class discussion, he really participates."
Join the conversation on the Herald Life Facebook page