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  
  276 - 267   266 - 257   256 - 247   246 - 237   236 - 227   226 - 217   216 - 207   206 - 197   196 - 187   186 - 177   176 - 167   166 - 157   ...   6 - 1  

1136. Why You Need to Replace Your utf8_encode and utf8_decode PHP Functions to Prepare to Upgrade to PHP 8.2 and Newer PHP Versions

Updated on: 2023-02-07

Posted on:

Old functions like utf8_encode and utf8_decode are deprecated in PHP 8.2 and will be removed in future versions, probably PHP 9.0, according to the plans of PHP core developers.

If you use these functions in the code of your PHP applications, you need to prepare to change your code, so that code will continue to work in future PHP versions.

Read this article to learn more about the changes in these PHP functions and how to make a smooth transition, so your code continues to work in current and future PHP versions.


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)

1134. How Can PHP Create PDF with Digital Signature Automating the Process Using the signNow API

Updated on: 2023-03-23

Posted on:

Many applications are written in PHP to develop systems that need to produce PDF documents.

Sometimes the PDF documents will be used as contracts or other documentation that must be signed by the people involved in a business or any agreement.

Changing the PDF documents to include the signatures of the people participating in the agreement is a complex process.

Fortunately, there are platforms like signNow that simplify that process by providing an easy-to-understand user interface to submit PDF documents and call the people that need to sign the documents in a way that the process is legally binding.

Please read this short article to learn how to use the signNow API from PHP to integrate the process of submitting PDF documents to the signNow platform and let the platform take care of the complexity of collecting signatures and generate legally binding documents that can be important for your company or the company of your PHP development customers.




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

1133. How Can You Benefit from PHP Readonly Classes Improvements Since PHP 8.2 with PHP Code Examples

Updated on: 2023-01-31

Posted on:

PHP readonly classes is the name of the new feature introduced in PHP 8.2 that was released on December 2022.

The readonly classes are an evolution of the readonly class properties introduced in PHP 8.1.

Read this short tutorial article to learn more about readonly classes and how you can benefit from this feature if you use PHP 8.2 or later by checking some PHP code examples.


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

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

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)

  276 - 267   266 - 257   256 - 247   246 - 237   236 - 227   226 - 217   216 - 207   206 - 197   196 - 187   186 - 177   176 - 167   166 - 157   ...   6 - 1  
  All package blogs All package blogs   Blog PHP Classes blog   Blog PHP Tutorials   Post article Post article