php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "whitelist approach"

How can one escape queries in PDO to prevent SQL injection, especially when using exec() instead of prepared statements?

To prevent SQL injection when using exec() in PDO, you can escape queries by using the quote() method provided by PDO. This method will properly escap...

What are some best practices for handling value ranges in PHP?

When handling value ranges in PHP, it is important to validate input data to ensure it falls within the specified range. One common approach is to use...

How can the length limitation of URLs affect passing variables in PHP applications?

When passing variables in URLs in PHP applications, the length limitation of URLs can pose a problem if the URL becomes too long, potentially leading...

How can PHP be used to update a text file with user activity in real-time for a chat application?

To update a text file with user activity in real-time for a chat application using PHP, you can use file locking to prevent concurrent writes and ensu...

How can passing the date to the script for display optimization be a best practice in PHP?

Passing the date to the script for display optimization in PHP can be a best practice as it allows for flexibility in formatting the date based on dif...

Showing 9961 to 9965 of 10000 results

‹ 1 2 ... 1990 1991 1992 1993 1994 1995 1996 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.