Skip to content

WebCheatSheet

The easy way to know

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

Author: Sergey Kornilov

JavaScript

Return Data from a Popup Window with postMessage

Sergey KornilovNovember 12, 2026

Send a small result from a popup to its opener with postMessage, while checking the exact origin, window source, and message shape.

PHP

Close PHP ZipArchive before Deleting Source Files

Sergey KornilovNovember 11, 2026

Call ZipArchive::close explicitly and check its result before deleting files added to the archive, because writing may be deferred until close.

PHP

Separate Symfony Stateless Routes from Remember-Me Login

Sergey KornilovNovember 11, 2026

Put stateless API routes under a separate Symfony firewall so remember-me authentication does not cause unexpected session access.

PHP

Validate Laravel Broadcasting Authentication Inputs

Sergey KornilovNovember 11, 2026

Validate socket_id and channel_name before Laravel broadcasting authentication so malformed requests return a client error instead of HTTP 500.

SaaS Architecture

Offboard a SaaS Tenant without Leaving Active Access

Sergey KornilovNovember 11, 2026

Disable new tenant activity first, revoke sessions and keys, then process retained data and backups through an auditable offboarding workflow.

JavaScript

Configure Credentialed CORS without Wildcard Origins

Sergey KornilovNovember 11, 2026

Allow cookies on cross-origin requests only for trusted origins, return an explicit origin, and keep shared caches correct with Vary: Origin.

PHP

Handle PostgreSQL 18 RESTRICT Errors in Doctrine DBAL

Sergey KornilovNovember 10, 2026

Recognize SQLSTATE 23001 after a PostgreSQL 18 upgrade, update Doctrine DBAL, and keep a narrow compatibility fallback.

PHP

Avoid PDO PostgreSQL Placeholder Errors Near Backslashes

Sergey KornilovNovember 10, 2026

Bind backslashes as values instead of embedding ambiguous literals, and use current PDO PostgreSQL parsing with native prepares.

SQL

Release SQL Server Heap Pages with DELETE TABLOCK

Sergey KornilovNovember 10, 2026

Measure heap allocation before and after DELETE WITH (TABLOCK), and check row versioning instead of assuming LOB columns prevent deallocation.

SQL

Why SQL Server Procedure and Query DMVs Do Not Add Up

Sergey KornilovNovember 10, 2026

Compare plan creation times and handles before trying to reconcile sys.dm_exec_procedure_stats with statement-level query statistics.

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.