Web-app: proper way to echo files