PHP Classes

PHP Tutorials

Recommend this page to a friend!

Articles to teach about PHP matters and related topics

  All package blogs All package blogs   Blog PHP Classes blog   Blog PHP Tutorials   Post article Post article  
  232 - 223   222 - 213   212 - 203   202 - 193   192 - 183   182 - 173   172 - 163   162 - 153   152 - 143   142 - 133   132 - 123   122 - 113   ...   2 - 1  

1131. How PHP Developers Will be Able to Handle Better Undefined Properties in PHP 9.0

Updated on: 2023-01-25

Posted on:

The PHP core developers recently approved a new request for a change to help PHP application developers to handle better mistakes in their code when they misspell the name of a class property in their code.

Read this short article to learn how this improves your process of detecting and fixing code that has mistakes so you can produce code of excellent quality as early as possible.


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-13

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 (0)   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)

1124. Why Your PHP Code Will Benefit When You Upgrade to PHP 8.2 to Use Standalone Types for true, false and null

Updated on: 2023-01-10

Posted on:

Another attractive new feature of PHP 8.2 is the possibility to treat true, false, and null as standalone types.

This PHP 8.2 feature helps PHP developers catch bugs earlier and improve their code quality in practice by allowing them to be more specific in the types returned by functions that may have to be of these three new types: true, false, and null.

Read this short article to learn more about this new PHP 8.2 possibility and how you can use it in practice in your PHP applications to improve their quality.


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

1123. Why You Should Follow PHP Standards Recommendation 20 to Get the System Clock

Updated on: 2022-12-30

Posted on:

The PHP Standards Recommendation (PSR) 20 specification was released recently to help developers use a common interface to get the system click date and time.

This is an important recommendation if you need to test PHP application code that can manipulate dates and times using the current system clock.

Read this short article to learn more about this PHP standards recommendation, see some code examples, and get a suggestion of when it will be good for you to follow this recommendation.


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

1122. How PHP json_validate Function Will Improve The Validation of JSON Data in PHP 8.3

Updated on: 2022-12-28

Posted on:

The development of PHP 8.3 is already going on. Several new features were proposed and accepted by the PHP core developers.

One of the planned features is the ability to implement a new function called json_validate that will allow PHP developers to implement a more efficient validation of JSON data structures.

Please read this short article to learn how the json_validation function will work so you can benefit from it in your PHP applications.


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

1121. Why Would You Want to Do a PHP Upgrade to 8.2 Version to Benefit from ReadOnly Classes

Updated on: 2022-12-27

Posted on:

PHP 8.2 was released on December 8. It provides several new features that PHP developers implement PHP applications with better quality. One of the new features is the read-only class.

Read this short article to learn more about reading-only classes' benefits.


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

1120. Top Free PHP Scripts for Websites That You Should Not Miss in 2023

Updated on: 2022-12-27

Posted on:

PHP has attained a degree of success that is unprecedented. Many years ago, PHP established itself as the leading programming language in the world.

The result of this level of adoption of PHP is that there are many ready-to-use solutions written in PHP for many purposes.

Read this short article to learn more about several suggested PHP and JavaScript applications that you may be missing and that are useful for business purposes, like CRM, email marketing, visual content editors, contact forms, and URL shorteners.


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

  232 - 223   222 - 213   212 - 203   202 - 193   192 - 183   182 - 173   172 - 163   162 - 153   152 - 143   142 - 133   132 - 123   122 - 113   ...   2 - 1  
  All package blogs All package blogs   Blog PHP Classes blog   Blog PHP Tutorials   Post article Post article