Category: Application

PHP Loop Types

December 8, 2016 by pranjal

Filed under php

Last modified December 8, 2016

Loops in PHP are used to execute the same block of code a specified number of times. PHP supports following four loop types. •for − loops through a block of code a specified number of times. •while − loops through a block of code if and as long as a specified condition is true. •do…while − loops through a block of code once, and then …

PHP Arrays

December 8, 2016 by pranjal

Filed under php

Last modified December 8, 2016

An array is a data structure that stores one or more similar type of values in a single value. For example if you want to store 100 numbers then instead of defining 100 variables its easy to define an array of 100 length. There are three different kind of arrays and each array value is accessed using an ID c which is called array index. …

Introduction to JavaScript

August 31, 2016 by Giryavva Ghodake

Filed under php

Last modified October 8, 2016

Introduction to JavaScript Introduction to JavaScript is useful to start with an overview of the language’s history. JavaScript was created in 1995 by Brendan Eich while he was an engineer at Netscape. JavaScript was first released with Netscape 2 early in 1996. It was originally going to be called LiveScript, but it was renamed in an ill-fated marketing decision that attempted to capitalize on the popularity of …

How to Upgrade PHP version 5.4 to 5.5 on CentOS/RHEL 5/6/7

August 29, 2016 by Giryavva Ghodake

Filed under php

Last modified August 29, 2016

How to Upgrade PHP version 5.4 to 5.5 on CentOS/RHEL 5/6/7 PHP 5.5.0 has been released. The PHP improvement group is proud to report the immediate accessibility of PHP 5.5.0. This release includes countless of new features and bug fixes. Features include in PHP 5.5.0 :   Included generators and coroutines.   Included the at last keyword.   Included an improved secret key hashing API. …

PHP Mail functions()

August 20, 2016 by Giryavva Ghodake

Filed under php

Last modified August 20, 2016

PHP Mail functions() (PHP 4, PHP 5, PHP 7) mail — Send mail Description ¶ bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) Sends an email. Parameters ¶ to Receiver, or receivers of the mail. The formatting of this string must comply with » RFC 2822. Some examples are: user@example.com user@example.com, anotheruser@example.com User <user@example.com> User …

AJAX and PHP

August 17, 2016 by Giryavva Ghodake

Filed under php

Last modified October 25, 2016

AJAX and PHP AJAX php is used to create more interactive applications. AJAX  PHP Example The following example will demonstrate how a web page can communicate with a web server while a user type characters in an input field: Example Start typing a name in the input field below: Top of Form First name: Bottom of Form Suggestions: Johanna Example Explained In the example above, …

How to Insert Styles ,links,images in php

August 17, 2016 by Giryavva Ghodake

Filed under php

Last modified August 17, 2016

The HTML Style Attribute The style of  HTML element, can be done using  the style attribute. The HTML style attribute has the following syntax: <tagname style=”property:value;“> The property is a CSS property. The value is a CSS value. HTML Background Color The background-color property defines the background color for an HTML element. This example sets the background color for a page to powderblue: Example <body …

Install And Configure PHP

August 14, 2016 by Giryavva Ghodake

Filed under php

Last modified August 14, 2016

Installation and configration Step 1: download the files Download the latest PHP 5 ZIP package from www.php.net/downloads.php virus scan the file and check its MD5 checksum using a tool such as fsum. Step 2: extract the files install the PHP files to C:php, so create that folder and extract the contents of the ZIP file into it. PHP can be installed anywhere on your system, …

PHP Interview Questions

July 31, 2016 by Giryavva Ghodake

Filed under php

Last modified October 20, 2016

PHP Interview Questions What is PHP database? What are the common usage of PHP database? In how many ways you can embed PHP code in an HTML page? What is the purpose of php.ini file?  What is escaping to PHP? What do you mean by having PHP as whitespace insensitive? Is PHP a case sensitive language? What are the characteristics of PHP variables?  What are …

unix command list folders file counts

May 25, 2016 by Linux Guru

Filed under Application

Last modified June 14, 2016

unix command list folders file counts I want to get a list of folders at the current level (not including their subfolders) and simply print the folder name and a count of the number of files in the folder (preferably filtering to *.jpeg if possible), unix command list folders file counts I’ve come up with this one: $vi count.sh find -maxdepth 1 -type d | …