Skip to content

WebCheatSheet

The easy way to know

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

Category: PHP

PHP

Sign S/MIME Email with PHPMailer

Sergey KornilovOctober 5, 2026

Sign PHPMailer messages with an S/MIME certificate, matching private key, and intermediate certificate chain, then diagnose invalid signatures.

PHP

Detect PHP Socket Timeouts While Copying a Stream

Sergey KornilovOctober 4, 2026

Set a read timeout on a PHP socket, copy its data to a destination stream, and inspect stream metadata so partial data is never mistaken for EOF.

PHP

Log Guzzle Requests and Responses Safely in PHP

Sergey KornilovOctober 3, 2026

Add Guzzle middleware that records HTTP method, path, status, duration, and failures without rebuilding requests or leaking headers and bodies.

PHP

Implement create_sid() in a Custom PHP Session Handler

Sergey KornilovOctober 2, 2026

Implement create_sid() and validateId() for a database-backed PHP session handler, preserve strict mode, and let write() create the new database row.

PHP

Validate JPG and JPEG Uploads with PHP Fileinfo

Sergey KornilovOctober 1, 2026

Validate an uploaded image by its detected MIME type and an explicit extension map instead of assuming image/jpeg must use one filename extension.

Email, PHP

Read Microsoft 365 Outlook Email with PHP and Microsoft Graph

Sergey KornilovSeptember 30, 2026September 30, 2026

Configure Microsoft Entra ID and use PHP with Microsoft Graph to read Outlook mail securely through OAuth 2.0 without storing mailbox passwords.

PHP

Fix PHP Maximum Execution Time Exceeded Errors

Sergey KornilovSeptember 29, 2026

Find the operation that consumes a PHP request’s time budget, measure slow sections, and fix the underlying bottleneck before increasing the limit.

PHP

Detect a CSV Delimiter Automatically in PHP

Sergey KornilovSeptember 26, 2026

Guess a CSV delimiter from multiple sampled records in PHP using consistent parsed column counts, while detecting ambiguous or malformed files.

PHP

Split Large CSV Files in PHP

Sergey KornilovSeptember 26, 2026

Split a large CSV into smaller valid CSV files in PHP while preserving the header, quoted fields, encoding, and bounded memory usage.

PHP

Stream Large JSON Files in PHP

Sergey KornilovSeptember 26, 2026

Process large newline-delimited JSON files in PHP one record at a time, with bounded memory, line-level errors, and safe batch writes.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Pass Controller Data to a PHP MVC View
  • Recover from MySQL Server Has Gone Away Before a Transaction
  • Set the PHPMailer Envelope Sender Correctly
  • Speed Up SQL Server JDBC Batch Inserts with Bulk Copy
  • Reject NUL Bytes Before Saving PostgreSQL Text with PHP

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.