Some possible values for PHP predefined constant PHP_OS:
- CYGWIN_NT-5.1
- Darwin
- FreeBSD
- HP-UX
- IRIX64
- Linux
- NetBSD
- OpenBSD
Some possible values for PHP predefined constant PHP_OS:
| # Add in ~/.bashrc or ~/.bash_profile | |
| function parse_git_branch () { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| RED="\[\033[01;31m\]" | |
| YELLOW="\[\033[01;33m\]" | |
| GREEN="\[\033[01;32m\]" | |
| BLUE="\[\033[01;34m\]" | |
| NO_COLOR="\[\033[00m\]" |
| <?php | |
| if (!function_exists('mysql_connect')) { | |
| function mysql_connect($host, $username, $password) { | |
| mysqli_connect($host, $username, $password); | |
| } | |
| } | |
| mysql_connect('127.0.0.1', 'root', 'password'); |