Skip to content

WebCheatSheet

The easy way to know

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

Category: PHP

PHP

Process an HTML Form Securely with PHP

adminFebruary 2, 2023August 26, 2026

Last updated: August 26, 2026. Submit forms with POST, validate every field on the server, protect state-changing requests against CSRF,…

PHP

Get the Current Page URL in PHP

adminFebruary 1, 2023August 26, 2026

Last updated: August 26, 2026. Build the current URL from a configured public origin and the request URI. A fixed…

PHP

Block Repeated Login Attempts in PHP

adminFebruary 1, 2023August 25, 2026

Last updated: August 25, 2026. A login limiter should slow repeated failures without revealing whether a username exists. Track attempts…

PHP

Generate PNG Images Dynamically with PHP GD

adminFebruary 1, 2023August 25, 2026

Last updated: August 25, 2026. PHP’s GD extension can create charts, badges, placeholders, and other small raster images at request…

PHP

Set and Read Secure Cookies in PHP

adminFebruary 1, 2023August 26, 2026

Last updated: August 26, 2026. Call setcookie() before sending any response body. For authentication, store an opaque session identifier rather…

PHP

Secure File Upload with PHP

adminJanuary 29, 2023August 29, 2026

Last updated: August 29, 2026. A secure upload handler validates the request, enforces a server-side size limit, identifies the file…

PHP

PHP Loops: foreach, for, while, and do-while

adminJanuary 26, 2023August 27, 2026

Last updated: August 27, 2026. PHP provides several loop structures. Use foreach for arrays and iterables, for for counters, and…

PHP

PHP Arrays: Indexed, Associative, and Multidimensional

adminJanuary 24, 2023August 27, 2026

Last updated: August 27, 2026. A PHP array is an ordered map: each value has an integer or string key.…

PHP

Install and Configure PHP on Windows

adminJanuary 8, 2023August 26, 2026

Last updated: August 26, 2026. For IIS, use a current x64 Non-Thread-Safe PHP build with FastCGI. For command-line work only,…

PHP

Extract Plain Text from DOCX and ODT Files with PHP

adminDecember 24, 2022August 25, 2026

Last updated: August 25, 2026. DOCX and ODT documents are ZIP archives containing XML. PHP can extract their main XML…

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.