How to Send Email using PHP
A detailed guide on PHP mail sending options with examples of using the built-in mail function(), PHPMailer, Symfony, and third-party mail service providers such as Amazon SES, SendGrid and GetResponse.
Read MorePosted by M. Saqib | Dec 23, 2021 | PHP Source Code |
A detailed guide on PHP mail sending options with examples of using the built-in mail function(), PHPMailer, Symfony, and third-party mail service providers such as Amazon SES, SendGrid and GetResponse.
Read MorePosted by M. Saqib | Jun 14, 2021 | C++ Source Code: C++ Programming Concepts |
This is a simple C++ program to demonstrate rock, paper, scissors game. In this game, players have to choose one of the three options to beat the opponent or the computer itself. The C++ code generates a random choice by creating a character to indicate that option. Options are: r is for ‘rock’, p is for ‘paper’, and s is for ‘scissors’.
Read MorePosted by M. Saqib | Jan 22, 2021 | JavaScript: JavaScript and Web Development Source Code |
In JavaScript, we use braces {} for creating an empty object and brackets [] for creating an empty array. I find the Developer console in Mozilla Firefox or Google Chrome more convenient to print out any object and study the details.
Read MorePosted by M. Saqib | Jan 7, 2021 | C++ Source Code: C++ Programming Concepts |
This C++ program is capable of turning a text file describing the notes of a piece of music into...
Read MorePosted by M. Saqib | Jan 4, 2021 | C Programming Source Code |
This is a C program to demonstrate cache mechanism by simulating a cache in C. The source code can run in any C Compiler with minor modifications if required. It can run on real memory traces as input to your cache simulator. We have implemented two cache replacement policies i.e. least recently used (LRU) and First-in first-out (FIFO) replacement policies.
Read MorePosted by M. Saqib | Jan 1, 2021 | C++ Source Code: C++ Programming Concepts |
The Vigenere cipher is a method of encrypting or decrypting alphabetic text by using a series of interwoven Caesar ciphers (Caesar Shift), based on the letters of a keyword. In cryptography, Caesar shift is one of the simplest known encryption techniques. It employs a form of polyalphabetic substitution, which is using multiple substitution alphabets.
Read MorePosted by M. Saqib | Feb 11, 2020 | C Programming Source Code |
C Standard Library provides two different methods to generate random numbers. They are: rand() and srand().
Read MorePosted by M. Saqib | Mar 20, 2018 | C++ Source Code: C++ Programming Concepts |
This program will solve quadratic equations. It accepts coefficients of a quadratic equation from the user i.e. a, b and c and displays the roots. To compile the program name it quadratic_solver.cpp then type g++ -o quadratic_solver quadratic_solver.cpp You may need to use math.h like this: #include if you are using windows C++ programming software. (I tried it without the math.h and got an “undeclared identifier” error)
Read More