Tagged articles
19 articles
Page 1 of 1
php Courses
php Courses
Sep 5, 2025 · Information Security

How to Secure Data in PHP: HTTPS, Hashing, Prepared Statements, and Encryption

This guide explains essential PHP techniques for protecting sensitive data, covering HTTPS usage, password hashing algorithms, prepared statements to prevent SQL injection, encryption methods like AES and RSA, and CAPTCHA implementation, with clear code examples for each security measure.

CaptchaHTTPSPrepared Statements
0 likes · 4 min read
How to Secure Data in PHP: HTTPS, Hashing, Prepared Statements, and Encryption
php Courses
php Courses
Jul 2, 2025 · Databases

8 Proven PHP Database Query Optimization Techniques to Boost Performance

This article presents eight practical, proven techniques—such as prepared statements, proper indexing, selective column retrieval, pagination, efficient joins, query caching, batch operations, and EXPLAIN analysis—to dramatically improve the performance of database queries in PHP web applications, reducing load times and server strain.

Database OptimizationPHPPrepared Statements
0 likes · 6 min read
8 Proven PHP Database Query Optimization Techniques to Boost Performance
Wukong Talks Architecture
Wukong Talks Architecture
May 14, 2025 · Information Security

AI-Powered CodeBuddy Uncovers and Fixes Real SQL Injection and XSS Bugs

This article walks through two real-world security flaws—a high‑risk SQL injection and a medium‑risk stored XSS—showing how the CodeBuddy AI assistant can automatically detect, analyze, and remediate them with prepared statements and CSP enhancements, while explaining the underlying concepts and best practices.

AI code reviewCodeBuddyContent Security Policy
0 likes · 13 min read
AI-Powered CodeBuddy Uncovers and Fixes Real SQL Injection and XSS Bugs
php Courses
php Courses
Jan 27, 2025 · Information Security

How to Prevent SQL Injection in PHP Applications

This article explains essential techniques to protect PHP applications from SQL injection attacks, covering prepared statements, input validation, ORM usage, escaping, stored procedures, permission restrictions, web application firewalls, and logging, with practical code examples for PDO, MySQLi, and Eloquent.

ORMPHPPrepared Statements
0 likes · 5 min read
How to Prevent SQL Injection in PHP Applications
php Courses
php Courses
Dec 26, 2023 · Information Security

Preventing Cross-Site Scripting (XSS) in PHP Using Data Filtering

This article explains the principles of XSS attacks and demonstrates how to prevent them in PHP by using htmlspecialchars for output escaping, mysqli or PDO prepared statements for database queries, and the filter_var function with appropriate filters, providing clear code examples for each method.

Data FilteringPHPPrepared Statements
0 likes · 5 min read
Preventing Cross-Site Scripting (XSS) in PHP Using Data Filtering
php Courses
php Courses
Oct 11, 2023 · Information Security

Best Practices for Data Security and Encryption in PHP Development

This article explains essential PHP techniques—including HTTPS, password hashing, prepared statements, encryption algorithms, and captchas—along with practical code examples to help developers protect sensitive data from attacks and leaks.

CaptchaPHPPrepared Statements
0 likes · 4 min read
Best Practices for Data Security and Encryption in PHP Development
Laravel Tech Community
Laravel Tech Community
Sep 5, 2023 · Backend Development

Using MySQLi and PDO to Prevent SQL Injection in PHP

The article explains why directly concatenating user input into SQL queries leads to injection vulnerabilities and demonstrates how to secure PHP database operations using input validation, escaping functions, and prepared statements with MySQLi and PDO, while comparing related sanitization functions.

MySQLiPDOPHP
0 likes · 5 min read
Using MySQLi and PDO to Prevent SQL Injection in PHP
php Courses
php Courses
Mar 13, 2023 · Backend Development

How PHP Prepared Statements Prevent SQL Injection

This article explains how PHP's prepared statements and parameterized queries, especially using the PDO extension, protect against SQL injection by compiling query templates, binding parameters safely, and avoiding repeated parsing, while also showing practical code examples and Laravel's underlying implementation.

PDOPrepared Statements
0 likes · 5 min read
How PHP Prepared Statements Prevent SQL Injection
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 29, 2021 · Databases

Understanding Prepare Statements (PS) and Cursors in DBLE

This article explains DBLE's support for server‑side and client‑side prepared statements, outlines their advantages and drawbacks, describes the related MySQL protocol commands, and provides detailed guidance on enabling and verifying cursor usage with code examples and configuration parameters.

DBLEPrepared Statementscursors
0 likes · 9 min read
Understanding Prepare Statements (PS) and Cursors in DBLE
Laravel Tech Community
Laravel Tech Community
Jun 9, 2021 · Databases

Understanding PostgreSQL Prepared Statements and Plan Caching (Generic vs Custom)

This article explains how PostgreSQL's prepared statements cache execution plans, describing the default behavior of generating custom plans for the first five executions before switching to a generic plan, and shows how PostgreSQL 14 adds generic_plans and custom_plans columns to the pg_prepared_statements view for monitoring.

Custom PlanDatabase PerformanceGeneric Plan
0 likes · 2 min read
Understanding PostgreSQL Prepared Statements and Plan Caching (Generic vs Custom)
Programmer DD
Programmer DD
May 25, 2021 · Databases

Boost MySQL Insert Speed with Multithreading, Prepared Statements, and Batch Techniques

This article explains why multithreaded inserts into MySQL can outperform single‑threaded writes, breaks down the time spent on connection, parsing and insertion, and presents practical techniques such as prepared statements, batch processing, multi‑value inserts, and transaction batching that together can reduce insert time to seconds for massive data sets.

Batch InsertPrepared Statementsmultithreading
0 likes · 6 min read
Boost MySQL Insert Speed with Multithreading, Prepared Statements, and Batch Techniques
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 20, 2020 · Databases

MySQL 8.0.22 Release Highlights and New Features

MySQL 8.0.22 introduces prepared‑statement improvements, a new SHOW PROCESSLIST implementation via Performance Schema, UTC timestamp handling, read‑only schemas, error‑log access through Performance Schema, user‑management enhancements, optimizer push‑down, replication auto‑failover, Router scalability upgrades, and several deprecations and removals.

8.0.22Performance SchemaPrepared Statements
0 likes · 9 min read
MySQL 8.0.22 Release Highlights and New Features
Programmer DD
Programmer DD
Sep 23, 2019 · Databases

Why Multi‑Threaded Inserts Outperform Single Thread in MySQL

This article explains how multithreaded inserts into a MySQL table can be faster than single‑threaded inserts by reducing connection and parsing overhead, and it details techniques such as prepared statements, multi‑value inserts, and batch transaction commits to boost performance.

Batch InsertPrepared Statementsmultithreading
0 likes · 5 min read
Why Multi‑Threaded Inserts Outperform Single Thread in MySQL
58 Tech
58 Tech
Apr 11, 2019 · Databases

Analyzing Slow Query Issues Caused by PHP PDO Prepare Behavior

This article investigates why slow‑query logs show numerous slow queries without visible SQL statements, reproduces the problem using MySQL client, Perl and PHP simulations, compares local (emulated) and server‑side PDO prepare modes, and provides practical recommendations for configuring prepared statements to avoid hidden performance bottlenecks.

Database PerformancePDOPrepared Statements
0 likes · 7 min read
Analyzing Slow Query Issues Caused by PHP PDO Prepare Behavior
Tencent Database Technology
Tencent Database Technology
Nov 29, 2018 · Backend Development

Investigation of One-Second Timestamp Discrepancy in MySQL Master‑Slave Replication with Server‑Side Prepared Statements

This article investigates why MySQL master‑slave replication can exhibit a one‑second difference in datetime fields when using server‑side prepared statements, analyzing binlog generation, InnoDB rounding, and providing code examples, root‑cause explanation, and mitigation strategies.

InnoDBPrepared Statementsdatetime
0 likes · 15 min read
Investigation of One-Second Timestamp Discrepancy in MySQL Master‑Slave Replication with Server‑Side Prepared Statements
ITPUB
ITPUB
Jul 12, 2016 · Information Security

How to Prevent SQL Injection Attacks in PHP: Practical Tips and Code Examples

This article explains what SQL injection is, shows vulnerable PHP code examples, and provides concrete prevention techniques—including input validation, parameterized queries, limited database privileges, error handling, and proper escaping of special characters—to protect web applications from attacks.

PHPPrepared StatementsSQL injection
0 likes · 5 min read
How to Prevent SQL Injection Attacks in PHP: Practical Tips and Code Examples

MySQL Performance Optimization Tips for Web Applications

This article presents a comprehensive set of MySQL performance optimization techniques for web applications, covering query cache usage, EXPLAIN analysis, LIMIT 1, proper indexing, join optimization, avoiding ORDER BY RAND(), selective column retrieval, proper primary keys, ENUM usage, PROCEDURE ANALYSE, NOT NULL fields, prepared statements, unbuffered queries, IP storage as unsigned int, fixed‑length tables, vertical partitioning, batch DELETE/INSERT, column size reduction, storage engine selection, ORM usage, and careful handling of persistent connections.

Database designPrepared Statementsmysql
0 likes · 21 min read
MySQL Performance Optimization Tips for Web Applications