Days till date

This little JavaScript will take an event or date in the future and compare it to the current date, then display how many days until that date/event occurs. Pretty neat! Lots of uses… (Marriage countdown, till school’s out countdown, etc) JavaScript...

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...

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...

Java applet – HighLow Game

This applet is a simple card game. The user sees a card and tries to predict whether the next card will be higher or lower. Aces are the lowest-valued cards. If the user makes three correct predictions, the user wins. If not, the user loses. This version of the game...

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...