PHP (2)

PHP: Sending e-mail in Laravel using SMTP and Amazon SES

by Matt Komarnicki – May 15, 2020
A shared hosting wins over VPS with its simplicity but is also has pretty serious limitations and doesn't scale up very well. On the other hand managing your own server raises a variety of responsibilities, one in particular is crucial to your business - managing an e-mail server. It is a difficult and absorbing task - not only it requires advanced knowledge in terms of configuration (IMAP, SMTP…

PHP: Optimised file response in Laravel using HTTP Cache Headers

by Matt Komarnicki – May 28, 2015
In most common situations you are going to let your web server handle all HTTP responses for you. Imagine a case where a client is requesting a file by accessing an unique URL → server takes an incoming request → looks for corresponding resource directly on a storage level and (assuming a file exists) responds with HTTP 200 OK status. That's how it works in a nutshell. What if prior to return a fi…