What’s new in ansible 1.6

What’s new in ansible 1.6

Below are the list of new changes , Modules in Ansible 1.6 Major features/changes in Ansible 1.6: The deprecated legacy variable templating system has been finally removed. Use {{ foo }} always not $foo or ${foo}. Any data file can also be JSON. Use sparingly — with great power comes great responsibility. Starting file with…

Read More
getting started with FuelPHP

Getting Started with FuelPHP

Getting Started with FuelPHP FuelPHP is a simple, flexible, community driven PHP 5 web framework. It was born out of the frustrations people have with the current available frameworks and developed with support from a community of developers. FuelPHP is extremely portable, works on almost any server and prides itself on clean syntax. Installations:- Follow…

Read More

Writing custom module in ansible

While Writing custom module in ansible in ansible you need to setup ansible environment.  If you are not aware from it you can follow step by step instruction  in my post “Getting started with ansible“ After successfully setup ansible environment create your module directory inside “library/”. I have created module directory named “custom_module/” and module…

Read More

Getting Started with Ansible

Getting Started with Ansible What is Ansible? Ansible is Simple IT automation tools that managing your server infrastructure, Including Code Deploys, Handling services on your remote server, Installations and configurations server. Here are some more key properties of Ansible: Ansible Installation: Getting started with ansible , installations steps for CentOS. You can find more details…

Read More
Count matching occurrences in php array

Count matching occurrences in php array

You can Count matching occurrences in php array using php array function array_count_values() Syntax: array array_count_values ( array $array ) array_count_values() returns an array using the values of array as keys and their frequency in array as values.  Example:-   <?php       $array = array(1,”roopendra”,1,”php”,”roopendra”);       print_r(array_count_values($array));   ?> Above code will output:

Read More
validate url in php

Validate URL in PHP

You can validate URL in PHP using regular expression or using validate filters Validate URL in PHP using regular expression: Example:- Validate URL using validate filters: Example:- Validate URL using validate filters with flag value: Flags:- FILTER_FLAG_PATH_REQUIRED  : Requires URL to have a path in URL the domain name (like www.example.com/Orders/order/) FILTER_FLAG_QUERY_REQUIRED : Requires URL…

Read More
Verified by MonsterInsights