Skip to content

WebCheatSheet

The easy way to know

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

Author: Sergey Kornilov

SQL

Recover from SQL Server Savepoint Rollback Errors in Laravel

Sergey KornilovNovember 14, 2026

Preserve the original Laravel transaction error and purge a SQL Server connection after a failed savepoint rollback.

PHP

Use Stateful ESI Fragments from Symfony Stateless Routes

Sergey KornilovNovember 14, 2026

Keep the page shell stateless while moving user-specific ESI content to a separately addressable stateful Symfony route.

PHP

Parse Untrusted XML Safely with PHP XMLReader

Sergey KornilovNovember 13, 2026

Bound the input, disable network access, reject DTDs, and avoid entity-expansion flags when parsing untrusted XML with PHP XMLReader.

JavaScript

Validate API JSON before Reading Array Length

Sergey KornilovNovember 13, 2026

Check the HTTP response and JSON shape before reading length, then render an empty array separately from a malformed API response.

SQL

Remove SQL Server STX Characters before FOR XML

Sergey KornilovNovember 13, 2026

Locate the U+0002 STX character in archived SQL Server text and remove it in the export query without changing the source table.

PHP

Validate Symfony Integer and Boolean Query Parameters

Sergey KornilovNovember 13, 2026

Distinguish missing Symfony query parameters from empty or invalid values, apply ranges, and return a clear 400 response for bad input.

SaaS Architecture

Detect Hidden Document Text before LLM Ingestion

Sergey KornilovNovember 12, 2026

Compare extracted document text with OCR from rendered pages, quarantine mismatches, and keep untrusted files away from tool-enabled LLM agents.

PHP

Handle PHP zlib Warnings and Exceptions Consistently

Sergey KornilovNovember 12, 2026

Validate zlib options, bound decompression output, and convert operation warnings into a local exception without hiding unrelated PHP failures.

SQL

Store MySQL Dates beyond the 2038 TIMESTAMP Limit

Sergey KornilovNovember 12, 2026

Use DATETIME for future MySQL dates beyond 2038, store a defined UTC value, and keep time-zone conversion in a controlled application boundary.

PHP

Replace Curly-Brace String Offsets in PHP 8

Sergey KornilovNovember 12, 2026

Replace legacy $value{0} offset syntax with square brackets, then verify whether the code expects bytes, characters, or array elements.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Distinguish PHP stream_select Timeouts from Readable Streams
  • Set UTF-8 Output for a PHP gettext Domain
  • Combine CSV Columns into an RDF Literal with CSVW
  • Fix PHP set_error_handler Callbacks with Five Parameters
  • Replace Curly Brace String Offsets in PHP 8

Recent Comments

  1. Set UTF-8 Output for a PHP gettext Domain - WebCheatSheet on PHP Variables, Types, and Scope
  2. Combine CSV Columns into an RDF Literal with CSVW - WebCheatSheet on Create Word, Excel, and CSV Files with PHP
  3. Replace Curly Brace String Offsets in PHP 8 - WebCheatSheet on PHP Variables, Types, and Scope
  4. Fix PHP set_error_handler Callbacks with Five Parameters - WebCheatSheet on PHP Functions: Parameters, Return Types, and Scope
  5. Fix PHP Extension undefined symbol Errors after a Runtime Change - WebCheatSheet on Connect PHP to SQL Server with PDO_SQLSRV

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.