Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because then I'd have to open an image in PHP just to output it right back out. More work than just having Apache serve it.


You can use X-SendFile (or X-AccelRedirect) to have your PHP code tell Apache or Nginx which image to serve, without having to send a 302 to the browser.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: