Category: PHP

Install PostgreSQL in XAMPP on Windows and integrate phpPgAdmin

Installing postgreSQL Download the postgreSQL installer from EnterpriseDB. Download the postgreSQL 9.2 as you might face frequent logout issue. Run the installer and follow the on-screen instruction. Assuming XAMPP is located in C:\xampp; using the pgSQL installer, install postgreSQL in say C:\xampp\pgsql\9.2 folder. You may skip the Stack Builder section. You will be prompted to set a […]

Read More →

Convert Numbers to Words in PHP

This script will convert numbers to words. It also contains an example. The function can accept big numbers also, both positive and negative. Enjoy coding. function convert_number_to_words($number) { $hyphen = ‘-’; $conjunction = ‘ and ‘; $separator = ‘, ‘; $negative = ‘negative ‘; $decimal = ‘ point ‘; $dictionary = array( 0 => ‘zero’, […]

Read More →