PHP

Convert NFA to DFA

Submitted by reza bojnordi on
My plan is to actually convert NFA to DFA. The program includes three state prove that the letters "a" and "b" are closed NFA and DFA is become and what values ​​the program automatically recognizes the state and the user displays. R. Bojnordi programmer from Iran Contact number 00989368700813

Populate Country and Region Dropdown Based on Visitor Location

Submitted by chrislim2888 on
This sample show you a simple solution to tackle a common needs of displaying entire country and region list for visitor selection. It is crucial for many cases such as user registration, feedback gathering page, comment page, billing page and many more. Beyond of just displaying the country and region list, this sample also demonstrate you on how to auto highlight the country and region where the

Wings Cafe ordering system

Submitted by Shakhane on
This is wings café ordering system coded in php and MySQL. it is my 3rd semester project at Limkokwing University Of Creative Technology Lesotho. I just hope u will like the code and customize it to suits your projects. Requirements to run this project succefully: Any php support server MySQL for running database. Just import wings.sql (it is in the database folder) in your phpmyadmin. Thanks. If

Calculate distance between 2 IP address

Submitted by chrislim2888 on
This sample code demonstrates you on how to calculate the distance (in km, miles and nautical miles) for 2 IP addresses. In general, this sample code will retrieve the latitude and longitude from the given IP addresses and perform the distance math calculation. Note: This sample requires the IP2Location BIN database which you can download free at http://lite.ip2location.com

PHP Forms

Submitted by joken on
Using the HTML Form is very important in creating a PHP application, because it serves as a holder of information from a website's visitors and then use the PHP to process that information.

Heres the simple HTML Form.

The code below is a simple HTML Form with a two input boxes for Fullname, E-mail Address and a submit button. When the user click the submit button, the data in the form will be sent to the HTTP POST method to be processed in a PHP file called “processData.php”.

Calculate Sunrise and Sunset Value from IP Address

Submitted by chrislim2888 on
The example demonstrate you on how to calculate the sunrise and sunset value from IP address, or to be specific - the geolocation from IP address, without the use of weather library. This solution requires a geolocation table, such as the DB11.LITE database which can be downloaded free from lite.ip2location.com. I would like to keep the source code zip small, so, please download it from http:/

PHP include

Submitted by joken on
In PHP, it is necessary to use PHP include command. Because include takes a file name and simply inserts that file content into the script that issued the include command. Including files saves a lot of work, it means that you can create a standard header, footer and menu file that is available to all web pages.