Social Marketing

Advanced solutions in Php development

Since then, PHP has become the most popular programming language for Web applications. Many popular websites are powered by PHP, and an overwhelming majority of scripts and Web projects are built with the popular language. Because of PHP’s huge popularity, it has become almost impossible for Web developers not to have at least a working knowledge of PHP. This tutorial is aimed at people who are just past the beginning stages of learning PHP and are ready to roll up their sleeves and get their hands dirty with the language.

Use an SQL Injection Cheat Sheet

This particular tip is just a link to a useful resource with no discussion on how to use it based on advanced php application development. Studying various permutations of one specific attack can be useful, but your time is better spent learning how to safeguard against it. Additionally, there is much more to Web app security than SQL injection. XSS (Cross-Site Scripting) and CSRF (Cross-Site Request Forgeries), for example, are at least as common and at least as dangerous.

Know the difference between Comparison Operators

This is a good tip, but it is missing a practical example that demonstrates when a non-strict comparison can cause problems. If you use strops to determine whether a substring exists within a string (it returns FALSE if the substring is not found), the results can be misleading.

Shortcut the else

This tip accidentally stumbles upon a useful practice, which is to always initialize variables before you use them. Consider a conditional statement that determines whether a user is an administrator based on the username .This seems safe enough, because it’s easy to comprehend at a glance. Imagine a slightly more elaborate example that sets variables for name and email as well, for convenience. If a user provides a username that triggers the else if condition, $admin is not initialized. This can lead to unwanted behaviour, or worse, security vulnerability. Additionally, a similar situation now exists for $moderator, which is not initialized in the first condition.

Say what you think.

Les publications similaires de "SEA blog"

  1. 30 Juil. 2019Specialized Php website development @Simplyphp190 clics
  2. 8 Avril 2019Understanding the needs for Php programming426 clics
  3. 2 Avril 2019We talk about the London bootcamp dedicated to web code601 clics
  4. 24 Fév. 2019What is top class Php development ?644 clics
  5. 17 Déc. 2018The importance of Php development for dynamic websites752 clics
  6. 26 Août 2018A strategic location with freedom of content and speech964 clics
  7. 25 Juin 2018All you need to know about hosting1068 clics
  8. 10 Mai 2018Is Laravel ruling web development?1157 clics
  9. 4 Mai 2018Setting up a PHP application1601 clics
  10. 19 Juil. 2017With Ror, watch out to never repeat in your code !1589 clics
  11. 15 Juin 2017Have a free test drive now !2054 clics