Skip to content

WebCheatSheet

The easy way to know

  • PHP
  • HTML
  • JavaScript
  • SQL
  • ASP
  • MS Access Functions
  • SaaS
  • Email

Category: PHP

PHP

Prevent Laravel Rate Limiter Deadlocks with MySQL

Sergey KornilovNovember 3, 2026

Move high-concurrency limiter counters to Redis, use one atomic increment, and retry complete MySQL transactions after error 1213.

PHP

Store CodeIgniter 4 Dates in UTC and Display Local Time

Sergey KornilovNovember 3, 2026

Configure the application and database session for UTC, then convert timestamps to the user’s timezone only when displaying them.

PHP

Fix PDO_FIREBIRD Loading Errors on Windows

Sergey KornilovNovember 2, 2026

Match PHP, Apache, and Firebird client architecture, use a supported fbclient version, and confirm which php.ini Apache loads.

PHP

Configure CodeIgniter 3 URLs on PHP’s Built-In Server

Sergey KornilovNovember 2, 2026

Set an explicit local base URL with its port, keep index.php configured, and use site_url() for application routes.

PHP

Remove a UTF-8 BOM Before Parsing YAML in PHP

Sergey KornilovNovember 1, 2026

Detect and remove only a leading UTF-8 byte-order mark before passing configuration text to the Symfony YAML parser.

PHP

Recover Doctrine DBAL Transactions After a Deadlock

Sergey KornilovOctober 31, 2026

Treat a deadlock as the end of the current transaction, discard inconsistent connection state, and retry the complete unit of work.

PHP

Prevent Empty SQL Statements in PHP MySQLi

Sergey KornilovOctober 31, 2026

Validate a generated SQL statement before it reaches MySQLi, then use a prepared statement for values supplied at runtime.

PHP

Fix PHP array_map(): Argument #2 Must Be an Array

Sergey KornilovOctober 30, 2026

Validate and normalize incoming PHP values before passing them to array_map instead of letting a string reach the array parameter.

PHP

Pass Private PHP Methods as Callbacks Safely

Sergey KornilovOctober 28, 2026

Create a Closure for a private method inside its class scope before passing it to external callback consumers.

PHP

Find Failed Transfers in PHP cURL Multi

Sergey KornilovOctober 28, 2026

Read each completed cURL multi message to find its transfer result instead of relying on the multi-handle error code.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Reject NUL Bytes Before Symfony DateTime Validation
  • Create a PostgreSQL Schema Before Running Laravel Migrations
  • Verify an SSIS Build Artifact When Connection Managers Are Missing
  • Reject Invalid Symfony UUIDs Before Doctrine Queries
  • Do Not Use Twig _self as a Stable Translation or Cache Key

Recent Comments

  1. Build Accessible Tabs with JavaScript - WebCheatSheet on JavaScript Functions
  2. Remove SQL Server STX Characters before FOR XML – WebCheatSheet on Export a MySQL Database Schema as XML with PHP
  3. Parse Untrusted XML Safely with PHP XMLReader – WebCheatSheet on Export a MySQL Database Schema as XML with PHP
  4. Replace Curly-Brace String Offsets in PHP 8 – WebCheatSheet on PHP Arrays: Indexed, Associative, and Multidimensional
  5. Detect Hidden Document Text before LLM Ingestion – WebCheatSheet on Extract Text from a PDF with PHP

Archives

  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • October 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022

Categories

  • ASP
  • Email
  • HTML
  • JavaScript
  • MS Access Functions
  • PHP
  • SaaS Architecture
  • SQL
  • Uncategorized
Copyright © 2026 WebCheatSheetFresh News by Ascendoor | Powered by WordPress.