hakopako

Full-stack Engineer's blog

php

Auth with Sentinel + SQLite3 + PHP7

日本語 | English Sentinel is an authorization and authentication package. I tried it out on a prototype product, but constructing MySQL or PostgreSQL is too much... Then I found out to use sqlite3. Install Sentinel Configure DB connection …

Install php7.1.9 with phpenv on MacOS

日本語 | English I tried to install php7.1.9 with phpenv on MacOS(Sierra/10.12.3), but some errors occurred. This article is a note of it. Install phpenv Brew didin't support to install phpenv itself. So I installed it manually like below.…

"simplexml_load_string" throws an error - how to catch it -

日本語 | English Loading xml data with just one line like below would bring a few troubles in php, even though it returns "false" when failed. $xml = simplexml_load_string($data); because ... Loading xml that contains control characters wi…