PHP Classes

PHP Security

Recommend this page to a friend!

Detection and prevention of security attacks

  All package blogs All package blogs   Blog PHP Classes blog   Blog PHP Security   Post article Post article  
  35 - 26   25 - 16   15 - 6   5 - 1  

1163. How to Use a PHP Cloud Hosting Service that Is Fast and Easy to Configure

Updated on: 2023-08-16

Posted on:

If you are a serious PHP developer, you must have experience with cloud hosting platforms.

Even if you do not have experience with cloud hosting, this article will help you better understand the current Cloud hosting options so that you can make a good choice for your next PHP site or API project.

Read this article to learn about existing alternatives for good Cloud hosting solutions, as well as get a recommendation for a simple and affordable cloud hosting option that you can try for free to test before you decide that it is a good option to host your PHP projects.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1135. Shall You Upgrade to the PHP 8.2.2 Version that Was Just Released

Updated on: 2023-02-03

Posted on:

PHP 8.2.2 was just released. It is primarily a bug-fixing version.

The fixes of this release can be important to you if you use the PHP extensions that were fixed.

Read this short article to learn about PHP extensions that were fixed, so you can determine if it is worth upgrading to this minor version.

The article also contains a small script for you to use with the current PHP version that you use to test your PHP version.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1130. How You Can Simplify MySQL Prepared Query Execution in PHP 8.2 Using mysqli::execute_query

Updated on: 2023-01-24

Posted on:

The PHP 8.2 version introduced several improvements.

One of those improvements was executing prepared SQL queries and retrieving the query results using fewer lines of code when you use the MySQLi extension to access your MySQL database server.

Read this article to learn about this improvement of PHP 8.2 with an example of PHP code.

You can also learn some valuable criteria to decide if you should use MySQLi or PDO to access a database in your PHP projects.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1127. Why Would You Want to Do a PHP Upgrade to Version 7.3 or 8.3 to Benefit from Better Security using the Improved SameSite Cookie Support

Updated on: 2023-01-17

Posted on:

Newer PHP versions often provide improved security features. That is the case of the SameSite cookie support to help your site to be better protected against Cross-Site Request Forgery (CSRF) attacks.

Read this short article to learn more about CSRF attacks, SameSite cookies, and code examples of how to benefit from improvements done in PHP 7.3 and PHP 8.3 to quickly implement this option to protect better your sites from these attacks.

There are more modern ways to generate random strings. Read another article about the \Random\Randomizer class to learn more about modern ways to generate random values.


Blog More ...   Post a comment Post a comment   See comments See comments (5)   Trackbacks (0)

1126. 4 PHP Upgrade Tools that You May Use to Update Your Code Faster to Make It Work with a Newer PHP Version

Updated on: 2023-01-29

Posted on:

Sooner or later, you may need to make your PHP applications code with newer versions.

Often you want to upgrade to benefit from new PHP features.

Other times you may fear that your applications be abused by badly intentioned people who abuse older version vulnerabilities.

Other times, your customer may require that your code works in newer PHP versions because those are the ones that are available in the hosting environment on which your PHP will run.

Read this article to learn about several tools and methods that can help you to find and fix code that needs to be changed to work in newer PHP versions.


Blog More ...   Post a comment Post a comment   See comments See comments (2)   Trackbacks (0)

1125. Why You Will Want to Upgrade to PHP 8.3 to Benefit from Better Random Value Generation

Updated on: 2023-01-11

Posted on:

PHP 8.3 will introduce several new exciting features. One of those features is the improvements on the \Random\Randomizer class that was added in PHP 8.2.

PHP 8.3 will add more functions to generate random values for strings and floating-point numbers.

Please read this short article to learn more about the \Random\Randomize class functions and how you can use these functions in your PHP applications to make them more secure against possible attacks to current cryptography methods that in the future will be more vulnerable due to the availability of faster CPUs, including those that will use quantum computing.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1054. How to Improve the Security of a Web Application Using a Nginx PHP Front Controller Design Pattern Implementation

Updated on: 2021-05-25

Posted on:

The front controller is a popular design pattern used by many PHP applications to handle all the HTTP requests sent to a Web application.

Read this article to learn how to implement this design pattern with PHP using the Nginx Web server to prevent security attacks.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1049. A Guide To Internet Security: Why You Should Use A VPN

Updated on: 2021-11-27

Posted on:

A VPN (Virtual Private Network) is a solution for accessing a network via a private channel that makes the access to computers in that network more secure. It can be useful for developers to access the computers that host their sites and applications in a way that is very secure.

Read this article to learn more about what are VPNs and how you can use them to do your developer work that requires to access the remote computers of your own site servers or the servers of your customers.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

918. How to use Laravel Multi Auth Guard in Laravel 5.8

Updated on: 2019-11-12

Posted on:

Laravel is a popular Web framework that provides tools that can generate code for complex tasks such as authentication users.

You can use different methods of authentication of your choice but if for some reason you want to use more than one method of authentication, you can use the Laravel Multi Auth Guard support.

Read this article to learn how you can implement Multi Auth Guard support in your Laravel Web applications.


Blog More ...   Post a comment Post a comment   See comments See comments (3)   Trackbacks (0)

896. 5 Common Laravel Request Errors Which Aunt New PHP Developers

Updated on: 2019-09-19

Posted on:

Errors and exceptions are integral parts of software development.

Good developers should be ready to handle them in the best possible way to minimize the harm that the errors may cause to the application users and providers

Read this article to learn about the most common mistakes committed by less experienced developers and how can you fix them.


Blog More ...   Post a comment Post a comment   See comments See comments (3)   Trackbacks (0)

  35 - 26   25 - 16   15 - 6   5 - 1  
  All package blogs All package blogs   Blog PHP Classes blog   Blog PHP Security   Post article Post article