Thursday, 24 October 2019

PHP Start

PHP Start 


cd /etc/apache2/ 
sudo chmod 777 httpd.conf 

How to restart Apache web server on Mac OS 


sudo apachectl start 

cd /Library/WebServer/Documents 



 

 

Download visual studio code for Mac 
Php version on my mac
Ins-MacBook-Pro:bin inheeoh$ php -v
PHP 7.3.11 (cli) (built: Dec 13 2019 19:21:21) ( NTS )
Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies



Thursday, 17 December 2015

Phonegap - opening href links in a browser

Convert text from href links into ng-click.

//input: <a href="xxx">
        //output: <a ng-click="GotoLink('xxx')">
        function convert2ngclick(str) {          
            var res = str.replace(/<a href=\"(.+?)\">/g, '<a ng-click="GotoLink(\'$1\')">');
            return res;
        }