Point to PHP in your path when you get the undefined function mysql_connect() error on lab
export PATH=/opt/sp/php5.6/bin/:$PATH