Greatest common denominator from the input

This PHP programme returns the greatest common denominator from the input. PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Search the LDAP Directory.

Search the LDAP Directory. PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of illustration. *...

OS stats in PHP

Shows the OS statistics and information about OS. PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * *...

Show all fields of a table in PHP

This programme shows all the fields in a table of a database in MySQL. PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Execute queries in Oracle with PHP

Execute queries in Oracle with PHP PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of...

Random numbers within a range in PHP

Random numbers within a range in PHP PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of...

Show the contents of an XML in PHP

Parses an XML file and show its contents on the page. By default is assumes example.xml file in the same direcory as the script is. PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made...

Manipulate XML in PHP

Manipulate XML in PHP PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of illustration. * * *...

Connecting to FTP throught PHP

Connect to the FTP server with PHP. PHP /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of...

Java color chooser Appelt

A ColorChooserApplet shows six scroll bars that the user can manipulate to set the red, gree, blue, hue, brightness, and saturation components of a color. A color patch shows the selected color, and there are six labels that show the numerical values of all the...

JRadioButton Demonstration – Java

A little applet that demonstrates JRadionButton with a group of radio buttons that control the background color of a label. [code=’java’] /******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * *...

Stars Applet

Stars Applet that show some stars on the applet windows. Java /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the...

Testing of two components MirrorLabel – MirrorLabel

This applet tests two custom components, MirrorLabel and MirrorLabel . It also tests the validate() method. The user can click a button to change the text on the components in the applet. Clicking another button will validate the applet. This will cause components...

Color Selector

A custom component that lets the user select a color. The available colors are bright, saturated colors in a full range of hues. The possible colors are shown in a strip. The user clicks on this strip to select a color. The selected color is hilited with a white...

Double buffering in Swing – Java

An applet showing a red square that the user can drag with the mouse, on a background of lines. The user can drag the square off the applet and drop it. It will jump back to its starting point. This applet does uses double buffering, which is the default behavior in...

Read the URL – Java

This short program demonstrates the URL and URLConnection classes by attempting to open a connection to a URL and read text from it. The url must be specified on the command line. If an error occurs, a message is output. Otherwise, the text from the URL is copied to...

Show Volumes of Earth and Sun

Show Volumes of Earth and Sun and their ratios Java /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * *...

Dynamic array of integers

An object of class DynamicArrayOfInt acts like an array with unlimited size. The method put(position,value) is used to store the value at the specifed position in the array. There is no pre-set limit on how large position can be, although for very large values there...

RGB Color Chooser Applet – Java

A RGBColorChooser shows three sliders that the user can manipulate to set the red, green, and blue, components of a color. A color patch shows the selected color, and there are three labels that show the numerical values of all the components. Values are in the range...

Ouputs the Zodiac signs

Ouputs the Zodiac sign corresponding to a given date. Java /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the *...