PHP How to connect to SFTP using PHP8.3. February 9, 2025 / February 9, 2025 by Philip Newman | Leave a Comment To ensure the connection is SFTP, we need to use PHP’s SSH2 extension instead of the FTP functions. The ssh2_sftp extension allows secure file transfers over SFTP. Updated SFTP Upload Function This version connects to an SFTP server on port 22, uploads an XML file to the /data directory, and closes the connection when done. […] Read more » PHP PHP 8.1 PHP 8.2 PHP 8.3
PHP What is PHP? January 7, 2025 / January 7, 2025 by Philip Newman | Leave a Comment PHP is a popular open-source scripting language primarily used for web development and creating dynamic content for websites. Here’s a brief overview: Here’s a simple example of PHP code: This script would output “Hello, World!” on the webpage when executed on a server with PHP installed. PHP has evolved over the years to support more […] Read more » PHP PHP 8.1 PHP 8.2 PHP 8.3
PHP Validate Password Strength using PHP November 2, 2022 / January 2, 2025 by Philip Newman | 1 Comment on Validate Password Strength using PHP When the user provides their account password, it is always recommended to validate the input. Password strength validation is very useful to check whether the password is strong. A strong password makes the user’s account secure and helps to prevent account hacking. Using Regex (Regular Expression), you can easily validate the password strength in PHP. […] Read more » password PHP PHP 8.1 preg_match
PHP An Introduction to Classes and Objects in PHP 8+ February 6, 2022 / February 6, 2022 by Philip Newman | Leave a Comment What is OOP? Object-oriented programming (OOP) is a computer programming model that organizes software design around objects rather than single functions. An object can be defined as a data field that has unique attributes and behavior. A class is a container for objects to be manipulated using methods (internal functions). OOP Let’s assume we have […] Read more » PHP PHP 8.1