Muhammad Saqib – Senior Software Engineer & Founder of MyCPlus

Muhammad Saqib author banner — MyCPlus

Muhammad Saqib is the founder and lead author of MyCPlus, the programming-education site he launched in 2004. The idea grew out of his own struggle learning to program at university — C was the first language he picked up — and the help he wished he’d had became the site he built for others. What began as a C and C++ resource has since grown into a broad hub of tutorials, working code examples, and computer science guides across many languages and skill levels.

He holds an MSc in Computer Applications from the University of Plymouth, UK (2008) and has spent over 15 years building large-scale software across automotive, healthcare, retail, mobility, and education. Along the way he has worked with Ford, Hyundai, Trilogy/DevFactory, OT EMR, Al Othaim Markets, and NUST–SEECS, and today leads backend engineering as Technical Team Lead at a public transportation authority.

A hands-on, polyglot engineer, he works across C/C++, Java, C#, PHP, Python, and JavaScript, and writes here about programming, software engineering, DevOps, Agile, and computer science.

More than twenty years on, MyCPlus keeps the goal it started with: clear tutorials, real source code, and a place for learners to get unstuck — written by someone who has been on both sides of the problem.

Oracle PHP Connectivity

How to use PHP with Oracle Database 11g

This source code shows you how to connect to Oracle Database 11g and execute queries using the PHP. First of all it sets the ORACLE_HOME and ORACLE_SID Environment variables using the putenv() method. Note that to run this code, you will need PHP OCI8 extension enable in php.ini file.

random numbers

Printing numbers within a range in PHP

The following PHP source code shows that how to print random numbers within a range using. It uses rand() function to return the random numbers within a predefined range. The srand() function is used to provide the seed or arbitrary int number.

Connect to sFTP Server in PHP

Connect to sFTP Server in PHP

To use SFTP within your PHP application, a series of fundamental steps need to be executed. First and foremost, you must establish a connection to the SFTP server by utilizing the ssh2 extension, which facilitates secure communication. Subsequently, authentication is crucial to ensure the identity of the connecting entity. This is achieved by providing valid credentials, including a username and password, to the SFTP server. Once authenticated, your PHP script gains access to the server and enables file-related operations such as listing directory contents, downloading files to the local environment, and uploading files to the remote server.

Search the LDAP Directory in PHP

Search the LDAP Directory in PHP

This PHP code connects to an LDAP server, performs a search for entries with the last name and then sorts and prints them alphabetically. The sorting is done by a custom function called compareEntry, which compares entries based on last names and first names. It uses the LDAP functions to communicate with the server and showcases basic error handling.

Get Detailed Server Information in PHP

Get Detailed Server Information in PHP

Welcome to the PHP Server Information Script – a robust script designed to provide valuable insights into your server environment. This script offers a overview of key aspects such as PHP memory usage, system memory details, and OS/Web Server information.

PHP-MySQL Database Table Structure Viewer

PHP/MySQL Database Table Structure Viewer

The script uses MySQLi, a modern and more secure extension for interacting with MySQL databases in PHP. It provides a beginner-friendly way to understand the composition of your database tables. The script connects to the database, query the structure of a specific table and presents the information in an organized HTML format.

Scroll to Top