Source Code

JavaScript – Printing the Periodic Table

The periodic table is a tabular arrangement of the chemical elements, ordered by their atomic number, electron configuration, and recurring chemical properties, whose adopted structure…

Phone Bill

Does it ever bother you how much a long-distance phone call is going to cost, after you hung up? With this script, all you have…

Browser Check

It's often necessary to make a script only accessible to the newer browsers (that can support the script without error) and keep older browsers from…

How to use PHP with Oracle Database 11g

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…

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…

How to parse the contents of an XML file using PHP?

This is simple PHP script to show the contents of an XML file on html page. The script uses PHP XML parser to traverse through…

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…

Calculating the Greatest Common Denominator (GCD) in PHP

This PHP code defines a function called gcd that calculates the greatest common denominator (GCD) of a list of integers by using a brute-force approach…