News
PHP2Shell fixes, WordPress 7.2 Beta 1 and ChatGPT locked chats
Today: patch PHP for the PHP2Shell flaws, WordPress 7.2 Beta 1, OpenAI on Google Cloud, Gemini's business hub, ChatGPT locked chats and iPhone Duo reviews.
8 min read
Tag
PHP Trick
News
PHP2Shell fixes, WordPress 7.2 Beta 1 and ChatGPT locked chats
Today: patch PHP for the PHP2Shell flaws, WordPress 7.2 Beta 1, OpenAI on Google Cloud, Gemini's business hub, ChatGPT locked chats and iPhone Duo reviews.
8 min read
Dev log
Compile Sass (SCSS) with PHP using scssphp
Compile SCSS to CSS from PHP with scssphp. Install it with Composer, compile a file, pass in variables, cache the result, and know when I'd use Dart Sass.
4 min read
Dev log
Redirect logged-out users in PHP and WordPress
Send visitors who are not signed in to the login page. A safe session check in plain PHP, and the WordPress way with is_user_logged_in() and auth_redirect().
3 min read