Skip to content

WebCheatSheet

The easy way to know

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

Category: PHP

PHP

Use a Unix Socket with PHP cURL Without Configuring a Proxy

Sergey KornilovOctober 13, 2026

Use CURLOPT_UNIX_SOCKET_PATH for a local Unix-domain socket and reserve CURLOPT_PROXY for an actual HTTP or SOCKS proxy.

PHP

Replace spl_object_hash in PHP 8.6

Sergey KornilovOctober 12, 2026

Replace deprecated spl_object_hash with spl_object_id for temporary identity or WeakMap for object-keyed metadata.

PHP

Fix XAMPP Apache Duplicate Listen 443 Errors

Sergey KornilovOctober 11, 2026

Find duplicate Apache Listen 443 directives or a competing process before starting HTTPS in a local XAMPP environment.

PHP

Handle curl_setopt Failures and ValueError in PHP

Sergey KornilovOctober 11, 2026

Check curl_setopt_array results, catch PHP 8 ValueError for invalid options, and report transfer failures separately.

PHP

Pass Controller Data to a PHP MVC View

Sergey KornilovOctober 10, 2026

Let a PHP controller validate request data, call the model, and pass an explicit view-data array to a template.

PHP

Recover from MySQL Server Has Gone Away Before a Transaction

Sergey KornilovOctober 10, 2026

Refresh an idle PHP PDO connection before starting a MySQL transaction, while avoiding unsafe retries after writes begin.

PHP

Set the PHPMailer Envelope Sender Correctly

Sergey KornilovOctober 10, 2026

Set the visible From address and SMTP envelope sender separately in PHPMailer without manually adding a Return-Path header.

PHP

Reject NUL Bytes Before Saving PostgreSQL Text with PHP

Sergey KornilovOctober 10, 2026

Detect NUL bytes in PHP before inserting text into PostgreSQL, and use bytea when the value is truly binary data.

PHP

Fix Local PHP Asset 404 Errors by Setting the Document Root

Sergey KornilovOctober 9, 2026

Make local CSS, SVG, and image URLs match production by starting the PHP development server with the correct public document root.

PHP

Enable PHP Session Strict Mode and Regenerate IDs Safely

Sergey KornilovOctober 9, 2026

Enable PHP session strict mode, secure the session cookie, and regenerate the ID after authentication without accepting attacker-supplied IDs.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Share a Fetch Request Without Sharing Cancellation
  • Recover SQL Server tempdb After an Azure VM Restart
  • Diagnose SQL Server Merge Replication Rollback Errors
  • Fix PHP array_map(): Argument #2 Must Be an Array
  • Pass Private PHP Methods as Callbacks Safely

Recent Comments

  1. Build Accessible Tabs with JavaScript – WebCheatSheet on How to Control Tab Order in HTML
  2. Verify SQL Server Backups with CHECKSUM and VERIFYONLY – WebCheatSheet on Fix SQL Server ‘Insufficient Access Rights’ During Backup
  3. Get the Latest MySQL Value Before Two Dates – WebCheatSheet on SQL GROUP BY
  4. Count Duplicate Values in a JavaScript Array – WebCheatSheet on JavaScript Arrays
  5. Fix MySQL Error 1038 for Wide Rows and Filesort – WebCheatSheet on Determine the MySQL Version from the Command Line

Archives

  • 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.