Skip to content

WebCheatSheet

The easy way to know

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

Author: Sergey Kornilov

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.

SQL

Do Not Reset MySQL Reserved Accounts During an Upgrade

Sergey KornilovNovember 1, 2026

Inspect mysql.sys and mysql.session safely, leave their credentials untouched, and repair upgrade readiness through the supported server path.

HTML

Detect Unsupported Audio Formats in an HTML Player

Sergey KornilovNovember 1, 2026

Declare accurate MIME types, test codec support with canPlayType(), and handle both media and source loading errors.

SQL

Fix SQL Server Error 4104 After Wrapping a Query for Paging

Sergey KornilovNovember 1, 2026

Project required columns from the inner query and reference only the derived-table alias from the outer paging query.

JavaScript

Handle Delegated Button Clicks When the Icon Is Clicked

Sergey KornilovNovember 1, 2026

Use event.target.closest() to find the intended button when a delegated click begins on an icon or another child element.

SQL

Diagnose SQL Server JDBC Memory Growth After a Driver Upgrade

Sergey KornilovOctober 31, 2026

Compare driver versions under the same load, close every JDBC resource, inspect retained objects, and isolate statement-pooling settings.

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.

SQL

Diagnose SQL Server Cardinality Estimates for Filtered Indexes

Sergey KornilovOctober 31, 2026

Compare estimated and actual rows, verify that the predicate matches the filtered index, and test estimator changes without changing the whole database first.

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.

JavaScript

Share a Fetch Request Without Sharing Cancellation

Sergey KornilovOctober 30, 2026

Deduplicate an in-flight fetch while giving each caller its own AbortSignal and aborting the network request only after every waiter leaves.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Fix Invalid Regex Escapes After Moving to PHP 8
  • Handle Invalid Read Lengths in PHP File Functions
  • Resolve DbUp Hotfix Migration Conflicts in SQL Server
  • Distinguish PHP stream_select Timeouts from Readable Streams
  • Set UTF-8 Output for a PHP gettext Domain

Recent Comments

  1. Fix Invalid Regex Escapes After Moving to PHP 8 - WebCheatSheet on PHP Regular Expressions: preg_match, Replace, Split, and Grep
  2. Set UTF-8 Output for a PHP gettext Domain - WebCheatSheet on PHP Variables, Types, and Scope
  3. Combine CSV Columns into an RDF Literal with CSVW - WebCheatSheet on Create Word, Excel, and CSV Files with PHP
  4. Replace Curly Brace String Offsets in PHP 8 - WebCheatSheet on PHP Variables, Types, and Scope
  5. Fix PHP set_error_handler Callbacks with Five Parameters - WebCheatSheet on PHP Functions: Parameters, Return Types, and Scope

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.