Category: php

Install Apache PHP and MySQL on macOS Sierra

Note:This is for fresh installations. Refer https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions for more details /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” brew tap homebrew/homebrew-php brew tap homebrew/dupes brew tap homebrew/versions brew tap homebrew/php sudo apachectl stop sudo launchctl unload -w...

xdebug code in php.ini for Netbeans

After enabling XDebug extension, give this code in php.ini to attach Netbeans to Xdebug. xdebug.remote_enable=on xdebug.remote_log=”/var/log/xdebug.log” xdebug.remote_host=localhost xdebug.remote_handler=dbgp xdebug.remote_port=9000

Number to words in php

NumbWordter is a number to word converter class written in php. This class will be useful to display numbers as words. Usage: $converter=new NumbWordter(); echo $converter->convert(1823912); // echoes – One million, eight hundred and twenty...

error: Uh oh ...