PHP Stream Wrappers are one of the most underrated features in the language.
📌 Local file?
📌 HTTPS?
📌 Inside a ZIP?
→ Same function. Only the URL changes.
PHP Stream Wrappers are one of the most underrated features in the language.
📌 Local file?
📌 HTTPS?
📌 Inside a ZIP?
→ Same function. Only the URL changes.
You’ve probably seen `use function strlen` in PHP and shrugged.
But here’s the twist: in certain cases, it activates a special compiler optimization in PHP that makes some functions significantly faster.
This is your eureka moment! Here’s how it works, when it matters, and how to adopt it easily: https://tideways.com/profiler/blog/compiler-optimized-php-functions?utm_medium=social&utm_source=mastodon&utm_campaign=compiler-optimized-php-functions
#php #opcache #compileroptimization #phptips #webdev #coding #programming #performance
Send a Slack notification from a web interface using PHP?
With Temma, it only takes a few lines of code.
👉 Full tutorial here:
https://www.temma.net/en/tuto/mini-web2slack
#PHP #Temma #SlackIntegration #WebDev #PHPTips #OpenSource #CleanCode