Bhaktaraz

Web Enthusiastic, Nature Lover

Archives

Installing Dnsmasq for wildcard local domains on Debian

Install sudo apt-get install dnsmasq Configure sudo vim /etc/dnsmasq.conf Add this: address=/example.com/127.0.0.1 listen-address=127.0.0.1 This maps *.example.com to 127.0.0.1 – replace with the domain you want to use. It also makes dnsmasq only respond to local requests for security – this is optional. Restart to load the new configuration: sudo /etc/init.d/dnsmasq restart Test it: nslookup abc.example.com 127.0.0.1 It should say something like:

Setting server for first time to deploy PHP application to cloud

Apache sudo apt-get update sudo apt-get install apache2 Click Here for more details. MySql sudo apt-get update sudo apt-get install mysql-server mysql_secure_installation Click Here for more details. Composer sudo apt-get update sudo apt-get install composer Click Here for more details. PHP sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.1 php7.1-common sudo apt-get install

PHP – Strings

They are sequences of characters, like “PHP supports string operations”. NOTE − Built-in string functions is given in function reference PHP String Functions Following are valid examples of string $string_1 = “This is a string in double quotes”; $string_2 = “This is a somewhat longer, singly quoted string”; $string_39 = “This string has thirty-nine characters”; $string_0 =