Limiting upload file size

Limiting upload file size We can configure upload max file size in php.ini file, but this is a global maximum for all of PHP. If we want to configure max file size in a particular case, we can do that by adding an attribute to HTML form for MAX_FILE_SIZE. PHP will automatically detect that value …

Google AdWords Manager Defined Spend (MDS)

Manager Defined Spend (MDS) is a way for My Client Center (MCC) account users to better control the budgets of their AdWords accounts. It’s available for advertisers who meet the eligibility requirements and offer a better flexibility and efficiency for your managed accounts. If advertisers decide to move their managed accounts to MDS, they are …

Apple and Orange hackerrank solutions

Apple and Orange problem Sam’s house has an apple tree and an orange tree that yield an abundance of fruit. In the diagram below, the red region denotes his house, where s is the start point, and t is the endpoint. The apple tree is to the left of his house, and the orange tree …

PHP Arrays

An array is a collection of related values (a list of items) such as names of cities Creating an array To create an array use the function array() like: Numeric Arrays Numeric Arrays are arrays that use only numeric keys, called as numeric, indexed or ordered arrays. Associative Arrays Associative arrays are arrays that use …

PHP Conditional Statements: if else, switch

If statement Execute the code if the condition is true If…else statement Switch statement Execute different code depending on a condition. The switch statement is similar to a series of IF statements If the value pass to the switch statement matches, the code that follows the case is executed. Example: Be careful! if we forget …

Difference between single-quoted and double-quoted

The most important difference between single and double quote, is that anything enclosed in single quotes is treated as literal text. Single quotes When using single quotes we must take care with apostrophes. To use the apostrophe in single quotes, we have to put backslash before apostrophe (which is named as escape character). The backslash …

Best movie recording settings for Sony NEX and Sony Alpha

eg. NEX 5N, NEX-5R, NEX-6, NEX-7 and Sony Alpha cameras These settings are also useful for other types of camera. If you want to use your camera video feature more professionally and optimized for production use, there are few easy tips.   Lens Constant aperture lenses (eg.f2.8) are more apropriate for filming instead of zoom …

JavaScript Loops while, for, do while

JavaScript Loops JavaScript loops are used to execute the same code multiple times. They can execute a block of code as long as a specified condition is true.   The While Loop The while loop execute a block of code as long as a specified condition is true. The While loop has the following syntax: …