Warning: The magic method SFML_Singleton::__wakeup() must have public visibility in /home/public/wp-content/plugins/sf-move-login/inc/classes/class-sfml-singleton.php on line 72
php – Thoughts, etc.

Thoughts, etc.

Tracking the occasional random walk

php

Primary keys other than “id” in lumen-jwt

2017-06-20 / Leave a Comment

Lumen-jwt is a great library that easily adds JavaScript Web Token (JWT) authentication to any Lumen application. I recently had the opportunity to submit my second pull request to the project, allowing user accounts to be uniquely identified via fields other than id, which was previously the only option. (As of this writing the PR has been … [Read more…]

Posted in: code Tagged: jwt, lumen, php

Long-running PHP process on nginx

2016-12-13 / Leave a Comment

Recently I had to allow a PHP script to run for several minutes under Nginx (more specifically, as part of a Laravel app on a DigitalOcean server), after encountering the error “504 Gateway Timeout”. First, to tell Nginx to allow the script to run for a longer period of time, I set the FastCGI read timeout to ten … [Read more…]

Posted in: system Tagged: nginx, notes, php