Blog

Prompt Engineering & LLM Guides

Practical guides on writing better prompts, cutting token costs and building with LLM APIs, for ChatGPT, Claude and Gemini users.

PHP2Shell: Critical PHP RCE Flaws and the FixServer Configuration
Oct 22, 20269 min read

PHP2Shell: Critical PHP RCE Flaws and the Fix

PHP2Shell explained: two critical PHP flaws allow remote code execution. Fixed versions, developer steps and an owner checklist.

Read Post
AI Prompt for Unit Tests on Legacy CodeTrending AI Prompts and Tools
Oct 8, 20265 min read

AI Prompt for Unit Tests on Legacy Code

The exact AI prompt for unit tests I use on untested legacy PHP functions, built around real guarantees instead of a vague write-tests request.

Read Post
Fix Laravel 419 CSRF Token Mismatch ErrorLaravel and PHP Development
Oct 8, 20265 min read

Fix Laravel 419 CSRF Token Mismatch Error

A real fix for the Laravel 419 CSRF token mismatch error — session cookie settings, SPA/Axios setup, and when to actually use the except array.

Read Post
OpenAI Function Calling in a Laravel AppAI and Backend Integration
Oct 7, 20265 min read

OpenAI Function Calling in a Laravel App

How to wire OpenAI function calling into a Laravel backend so an LLM can trigger real actions, plus the validation and loop-depth safeguards you actually need.

Read Post
Fix WooCommerce Cart Fragments Slowing Your SitePerformance Optimization
Oct 3, 20265 min read

Fix WooCommerce Cart Fragments Slowing Your Site

WooCommerce cart fragments slow? Here is why the get_refreshed_fragments AJAX call bypasses your cache and the fix that keeps the mini-cart working.

Read Post
Fixing OpenAI API Timeouts in Laravel JobsAI and Backend Integration
Oct 1, 20267 min read

Fixing OpenAI API Timeouts in Laravel Jobs

OpenAI API calls timing out inside your Laravel queue? Here's why jobs fail mid-request and how to set timeouts that actually agree with each other.

Read Post
Debug Silent Laravel Queue Failures With AIAI for Developers
Sep 27, 20266 min read

Debug Silent Laravel Queue Failures With AI

Laravel queue jobs can fail silently while Horizon still shows success. Learn why it happens and how AI helps trace the swallowed exception fast.

Read Post
AI Prompt to Write Unit Tests for Legacy PHPLaravel and PHP Development
Sep 26, 20266 min read

AI Prompt to Write Unit Tests for Legacy PHP

Learn how to write an AI prompt that generates real unit tests for legacy PHP code, including the hidden edge cases a generic prompt misses.

Read Post
Fix PHP 'Allowed Memory Size Exhausted'Debugging and Troubleshooting
Sep 25, 20266 min read

Fix PHP 'Allowed Memory Size Exhausted'

PHP Allowed memory size exhausted fatal error, explained: what triggers it, the quick php.ini fix, and the chunk()/cursor() code fix that stops it recurring.

Read Post

Stay ahead of the curve

Get the latest prompt engineering strategies, token optimization tricks, and platform updates delivered straight to your inbox once a month. No spam.