PHP For Beginners - Lesson 4


1. A constant is similar to a variable in that it stores a value that becomes accessible by name (but without the preceding $ character that is used to access variables). However, unlike a variable, once a value is assigned to a constant, it can never be changed.
2. You define constants using the define() function, passing it a name and a value (for example, define('MAX_USERS', 128);).
3. Predefined constants are those that PHP has already defined for you to provide information you can access such as the path and filename of the current file (for example, echo __FILE__;).
4. The print and echo commands are very similar to each other in that they both display values provided to them. The differences are that print accepts only a single argument but has a return value of 1, so it can be used in some places where echo cannot, but echo is a little faster and also supports multiple arguments separated by commas (which print does not).
5. The statement ($var == TRUE) ? echo "true" : echo "false"; is not valid PHP because echo doesn’t return a value and therefore cannot be used within expressions. In such instances, print can be used instead (for example, ($var == TRUE) ? print "true" : print "false";).
6. The superglobal arrays that handle information sent to a PHP program via forms sent using Get and Post methods are $_GET[] and $_POST[].
7. The $_COOKIE[] superglobal array contains cookie data.
8. You can display the URL of a page from which a user was referred to the current one (if available) with a statement such as echo $_SERVER[ 'HTTP_REFERER'];.
9. To sanitize input and other data by replacing any HTML tags with entities that only display the tag names, you can run them through the htmlentities() function (for example, echo htmlentities($_POST['bio']);).
10. You can get PHP to display its configuration information and the current environment and script with the phpinfo() function—for example, phpinfo(32); will display the PHP predefined variables.

PHP For Beginners - Lesson 4

Cheap Watches For Men - Bloomingdales Sale Off 40%


Bloomingdales has sale off 40% for Tag Heuer Watch on their website. Shipping is free on orders over $150.00. This sale ends 8/20/15.

This bold matte grey watch from Nixon has a sporty streak. It features a custom molded band, advanced quartz movement, and a mineral crystal case for a cool combination of style and substance.

Warranty Information
Case size: 47.75 X 39.25mm
Three hand Japanese quartz movement
Custome molded band, water resistant to 100 ATM, locking looper
Photo may have been enlarged and/or enhanced
2-year limited warranty
Polycarbonate/polyurethane
Imported
Web ID: 629801

Cheap Watches For Men - Bloomingdales Sale Off 40%

Buy Motorola Moto E Smartphone - Cheap Smartphones


Tracfone Moto E Smartphone, Motorola Bluetooth Speaker, and 1200 Airtime Minutes Bundle.

$94.99 after Coupon (was $419.97) Free Shipping - Coupon: GOODS5

Moto E Smartphone
  • Android 4.4 KitKat OS
  • 4.3” qHD display
  • Corning Gorilla Glass screen
  • 1.2GHz dual-core processor
  • 5MP camera
  • WiFi
  • Bluetooth 4.0
  • 3G data
  • FM tuner
  • GPS
  • Micro SD card slot
  • Free lifetime Triple Minutes through Tracfone
  • Weight: 5oz.
  • Dimensions: 2.55”x0.48”x4.91”
  • Condition: new
  • One-year warranty from Motorola
Motorola Deck Speaker
  • Streams music wirelessly from Bluetooth-enabled devices
  • Bluetooth 4.0
  • NFC
  • Wireless range: up to 300 feet
  • 40mm low-profile speakers
  • 360° sound projection
  • Pairs simultaneously with up to five devices
  • Battery life: up to 10 hours
  • Weight: 11.46oz.
  • Dimensions: 3.78”x7.28”x1.14”
  • Condition: new
  • One-year warranty from Motorola

Buy Motorola Moto E Smartphone - Cheap Smartphones

Craftsman Club - Craftsman Evolv Deluxe Anvil Pruner


Buying with $4.49 at Sears. 

Non-stick coated, carbon steel blades, knuckle guard, 5 year limited warranty.

Weight: 0.6lbs

Gardening Tool Type: Pruners & Loppers

Craftsman Club - Craftsman Evolv Deluxe Anvil Pruner

Big Summer Clarks - Shoe sale for men and women


I really like this shoe at the first time. Now it's $59.99, but when you buy 2 pairs for $99. It's very cheap like in warehouse shoe sale. This is the best prices for shoes or you can check it on the online shoes.

A low profile and rich suede upper in sand combi give this men's lace-up shoe a modern, casual look. The fabric lining minimizes friction, while the removable footbed provides cushioning and support for all-day comfort. For traction and long wear, we gave it a durable rubber outsole. A smart-looking option for denim, corduroys, and slim-cut pants.

Big Summer Clarks - Shoe sale for men and women

PHP For Beginners - Lesson 3


1. PHP is case-sensitive. This means that the combination of uppercase and lowercase characters used in variables, objects, and function names is important (for example, $todaysdate is a different variable to $TodaysDate).
2. Any combination of spaces, tabs, linefeeds, and some other non-alphanumeric or punctuation characters is known as whitespace.
3. PHP generally ignores whitespace characters that appear outside of strings—whitespace within strings is stored and acted upon, though.
4. A numeric variable is a container for a number, which allows you to address the value using a name (for example, $age = 32;).
5. A string variable is a container for a sequence of characters, which can be addressed using a name (for example: $name = 'Albert Einstein';).
6. You can include quotation marks within a string (regardless of whether or not the same type is used to contain the string) by escaping them with the \ escape character, which can also be used to insert special characters (for example, $mystring = "He said, \"Hello\"\n" ;—which also includes a linefeed at the end).
7. A heredoc string is one that is not enclosed in any type of quotation mark. Instead, a token is used to denote the string’s start and end, and it is commonly used in conjunction with an echo statement or string assignment. The tokens are generally given a preceding underline character to help them stand out (although not required), and the closing token must appear at the very start of a new line (with no indentation and no spaces or tabs before or after the semicolon).
8. PHP variables do not necessarily retain the type they are initially assigned, because if an operation is performed on them that makes better sense if the content were of a different type, then PHP will change the type. Therefore, a string containing all digits is turned into a number by PHP if a mathematical operation is performed on it—for example, the following will output the number 1235, even though $n is initially a string: $n = '1234'; $n = $n + 1; echo $n;.
9. To force PHP to store a certain type of value in a variable, you can use a casting keyword such as (int) or (string). An example would be $n = (int) '1234'; or $s = (string) (12 * 34);.
10. In PHP, to display the values of variables within a string, you do not need to break the string into smaller parts and then use the concatenation operator to splice the parts and variables together (as you must in some languages). Instead, just enclose the string in double quotation marks (not single quotes) and then drop the variable names right in where they are needed (for example, echo "Hello $name, you have previously visited on $times occasions.";).

PHP For Beginners - Lesson 3

PHP For Beginners - Lesson 2


1. You can place sections of PHP code anywhere in a document, but generally will do so in either the body or head (or you can make an entire document PHP, which then uses commands to output HTML).
2. To include a file of PHP instructions into a document, you can use an include, require, include_once, or require_once statement (for example: include 'header.php';).
3. To prevent an external PHP file from being included multiple times, you can use the include_once or require_once statement (for example, include_ once 'header.php';). Any additional attempts to load the file will be ignored.
4. To ensure that a PHP file gets included in a document, you can use the require statement (for example: require 'header.php';). If the file cannot be loaded, an error will be thrown.
5. To ensure that a PHP file is included and that it doesn’t get included more than once, you can use the require_once statement (for example: require_once 'heading.php';). If the file cannot be loaded, an error will be thrown, and any additional attempts to load the file will be ignored.
6. To create a single-line comment in PHP, start it with the // comment marker (for example, // This is a comment). All text after the comment marker to the end of the line is ignored.
7. To create a multiline comment in PHP, you start it with /* and end it with */ (for example, /* The contents between and including these two comment markers is completely ignored by PHP */).
8. To indicate that a PHP instruction is complete, you must place a semicolon character (;) after it (for example, echo "Hello world";). Failure to do this is one of the most common causes of errors for beginners.
9. The code $items = 120; $selection = 7; is legal PHP because multiple statements are allowed on a line, due to requiring semicolons after each instruction.
10. The code $items = 120 $selection = 7; will cause PHP to throw a parse error because there is no semicolon after the number 120 to separate the statements.

PHP For Beginners - Lesson 2

PHP For Beginners - Lesson 1


1. PHP is available for Windows, Mac OS X, and Linux/Unix computers.
2. PHP is compiled only at runtime, effectively making it a scripted language.
3. You can include as many sections of PHP as you like in an HTML document.
4. You must place a $ character in front of all PHP variables.
5. PHP supports both procedural and object-oriented programming (OOP).
6. You should give PHP documents the file extension .php (although servers can be configured to use PHP with any file extension).
7. The five main browsers with which you should test your PHP programs are Microsoft Internet Explorer, Apple Safari, Google Chrome, Mozilla Firefox, and Opera. You should also test your programs on tablets and mobile devices, too, if your target market uses them.
8. You can write and edit PHP programs using a plain text editor, but for better control and handy development tools you may prefer to use a program editor, or an integrated development environment (IDE).
9. There are several PHP server suites (also known as stacks) on the Internet. I recommend XAMPP, which is easy to download, install, and use right away.
10. After installing a web server such as Apache (included with XAMPP), your PHP files should be placed in its document root folder, whose location will vary according to operating system.

PHP For Beginners - Lesson 1

Creating a form in PHP language




Whether created in a simple HTML page or assembled via output from a program such as PHP, all web forms must have the following:

•   Opening and closing <form> and </form> tags
•   A submission method of either Post or Get
•   One or more input fields (although you can omit them, but you won’t be able to send any data if you do)
•   A destination URL of a program or script to receive the form data

It's easy to create a form in Php than create a form in word. We have a post to introduce how to create a form in word.

Creating a form in PHP language

Self-Test Questions in PHP Language For Beginners Part 18


1. How can you initiate HTTP authentication?
2. How can you verify a user’s authentication credentials?
3. How can you initiate a PHP session?
4. How can you save values into a session?
5. How can you read a value from a session?
6. How do you close a PHP session?
7. Without enforcing the use of cookies, how can you prevent sessions from being hijacked maliciously?
8. How can you force a session to only use cookies, and to never show session IDs in the address bar in the query string?
9. How can you conduct Ajax background communications with a web server?
10. What is a simple PHP statement to receive an Ajax Post request with a key named ajax, whose value is the name of a file in the local folder, and then return the contents of the file to the calling web page?

Self-Test Questions in PHP Language For Beginners Part 18

Self-Test Questions in PHP Language For Beginners Part 17


1. With which function can you sanitize user input, converting HTML special characters into safe entities?
2. What encoding type should an HTML form use in order to be able to upload files to a web server?
3. What input type should an <input> element use in order to allow a file to be selected for uploading via a form?
4. When a form has uploaded a file to a web server, which PHP superglobal array will contain all the details about the file?
5. What are the five pieces of information you can retrieve from PHP after a file upload, and how?
6. Assuming the uploaded file is an image, what are the three main types that it could be?
7. How can you ensure that an uploaded file will not compromise your web server?
8. Once you have received a file and sanitized its filename, what must you do to place it on your system?
9. What can you do to lessen the possibility that “bots” are accessing your websites instead of humans?
10. When processing filenames, what function is it a good idea to call if your program may have to run on different platforms?

Self-Test Questions in PHP Language For Beginners Part 17

Self-Test Questions in PHP Language For Beginners Part 16


1. What is the difference between a Post and a Get request?
2. In a Get request, which character indicates the start of a query string, which character separates keys and values, and which character separates pairs of keys and values?
3. How can you access form data sent to PHP via a Post request?
4. How can you access form data sent to PHP via a Get request?
5. How can you ensure that your PHP program doesn’t throw an error if no submitted data can be retrieved?
6. How can you let users resubmit a form with a problem in one of its inputs, without requiring them to reenter all the data?
7. How can you submit a collection of checkbox inputs to PHP?
8. How can you submit a collection of options from a <select> element that uses the multiple attribute?
9. How can you access array data submitted from a web page using PHP?
10. How can you store data your program needs in a form, without showing it to the user?

Self-Test Questions in PHP Language For Beginners Part 16

Self-Test Questions in PHP Language For Beginners Part 15


1. How can you add your own error handler to PHP, and which four values will it be passed?
2. How can you disable (or turn off) your own error handler to restore PHP’s default error handling?
3. With which function can you search for occurrences of a search string in another string?
4. How must you format a search string?
5. How can you set a regular expression to match regardless of case?
6. With which function can you match all occurrences of a search string?
7. How many arguments must be passed to the preg_match() and preg_match_all() functions, and what are they?
8. How can you replace any matches with a replacement string as well as find out how many replacements were made?
9. What regular expression might you use to search for any occurrences of either car or automobile?
10. With what statement could you case-insensitively find all six-letter words (not merely sequences of six letters) in a string (hint: think about word boundaries)?

Self-Test Questions in PHP Language For Beginners Part 15

Self-Test Questions in PHP Language For Beginners Part 14


1. In object-oriented programming (OOP), what is the combination of code and the data it manipulates called?
2. How do you declare a class in PHP?
3. How can you create an object from a class?
4. With which operator can you modify properties of an object?
5. What is the recommended way to create a constructor method for a class?
6. Why is it a good idea to include a __destruct() method in your classes?
7. How can you copy an object?
8. How can you access a method in the parent of a class?
9. How can you create a new class that inherits the properties and methods of an existing one?
10. What are the three types of visibility you can apply to properties and methods?

Self-Test Questions in PHP Language For Beginners Part 14

Self-Test Questions in PHP Language For Beginners Part 13


1. What is a function, and what does it do?
2. Are curly braces required around the statements in a function?
3. How do you call a function?
4. How does a function receive the values upon which to work?
5. How can you assign default values to arguments that are passed to a function?
6. With which two functions can you handle variable numbers of arguments to a function?
7. How does a function return to the calling code?
8. In PHP, what is the difference between local and global scope?
9. With which keyword can you access a global variable from a PHP function?
10. With which array can you access global variables from a function?

Self-Test Questions in PHP Language For Beginners Part 13

Self-Test Questions in PHP Language For Beginners Part 10


1. What does the term FILO stand for with arrays, and what is this type of array more commonly known as?
2. What does the term FIFO stand for with arrays, and what is this type of array more commonly known as?
3. With which function can you push a value to the start of an array?
4. With which function can you pop a value from the start of an array?
5. How can you sort the array $Recipes[] alphabetically?
6. How can you numerically sort the array $Temps[]?
7. What should you do if you need to have access to the original order of an array after it has been sorted?
8. With what statement could you remove the elements at indexes 4 and 5 from the array $URLs[] (remember that array elements start at 0)?
9. With what statement could you insert the string google.com into the array $URLs[], starting at index 6?
10. With what statement could you store the string google.com in the array $URLs[], starting at index 3, overwriting the existing value?

Self-Test Questions in PHP Language For Beginners Part 10

Self-Test Questions in PHP Language For Beginners Part 9


1. With which function can you iterate through a numeric array to extract its values, and how?
2. With which function can you iterate through an associative array to extract the key/value pairs, and how?
3. With what statement could you merge together the arrays $Cars and $Trucks into a new array called $Vehicles?
4. With which statement can you combine all the elements of the array $Itinerary into a string using a separator string of ', '?
5. With what statement could you call the function process() on all elements of the array $info[]?
6. With which function can you add a new value to the end of an array?
7. How can you read and remove the last item in an array with a single statement?
8. When calling the array_push() function, does the value supplied get added to the start or to the end of the array?
9. When calling the array_pop() function, is the value removed from the start or from the end of the supplied array?
10. How can you switch all the keys in an array with their associated values?

Self-Test Questions in PHP Language For Beginners Part 9

The Basics of Hadoop MapReduce v2, You need to know

Have you ever heard about Hadoop MapReduce? So, what is Hadoop MapReduce and Hadoop MapReduce v2? 

We are living in the era of big data, where exponential growth of phenomena such as web, social networking, smartphones, and so on are producing petabytes of data on a daily basis.

Hadoop v2 brings in several performance, scalability, and reliability improvements to HDFS. One of the most important among those is the High Availability (HA) support for the HDFS NameNode, which provides manual and automatic failover capabilities for the HDFS NameNode service. This solves the widely known NameNode single point of failure weakness of HDFS. Automatic NameNode high availability of Hadoop v2 uses Apache ZooKeeper for failure detection and for active NameNode election. Another important new feature is the support for HDFS federation. HDFS federation enables the usage of multiple independent HDFS namespaces in a single HDFS cluster. These namespaces would be managed by independent NameNodes, but share the DataNodes of the cluster to store the data. The HDFS federation feature improves the horizontal scalability of HDFS by allowing us to distribute the workload of NameNodes. Other important improvements of HDFS in Hadoop v2 include the support for HDFS snapshots, heterogeneous storage hierarchy support (Hadoop 2.3 or higher), in-memory data caching support (Hadoop 2.3 or higher), and many performance improvements. Almost all the Hadoop ecosystem data processing technologies utilize HDFS as the primary data storage. HDFS can be considered as the most important component of the Hadoop ecosystem due to its central nature in the Hadoop architecture.

The Basics of Hadoop MapReduce v2, You need to know

Self-Test Questions in PHP Language For Beginners Part 8


1. PHP doesn’t support multidimensional arrays natively, so what is the process of emulating such a structure?
2. What kind of array structure would you create to hold the contents of a 3×3 Tic-Tac-Toe board?
3. Given the array $oxo, containing a 3×3 Tic-Tac-Toe board, how might you reference the element in the top-left corner? How about the bottom-right corner?
4. How can you pre-increment a numeric value stored in an associative array at $PageClicks['homepage']?
5. How can you post-decrement a numeric value stored in an associative array at $PageClicks['homepage']['menu']?
6. How might you populate an associative array called $marbles with three sizes of marbles (small, medium, and large), of which you have (in order) 17, 23, and 21 bags?
7. How might you create a similar array to the $marbles array in Question 6, but with each array element containing a sub-array (rather than a numeric value), suitable for storing additional information?
8. What is one way you could access the second-level array elements for the $marbles array in Question 7 to also store information for the marble colors (red, green, and blue), along with their matching stock quantities?
9. Assuming all the elements for the array in Question 8 have been assigned values for the three sizes, three colors, and stock quantities, how could you determine the stock level of medium-sized bags of blue marbles?
10. Given a value stored in an associative, two-dimensional array, at $marbles['large']['red'], how can you increment this value by 10 with a single statement?

Self-Test Questions in PHP Language For Beginners Part 8

Self-Test Questions in PHP Language For Beginners Part 7


1. Which characters are allowed in PHP print array names?
2. What types of values can be stored in an array element?
3. How can you create an unpopulated array?
4. How can you assign a value to specific elements in a numeric array.
5. How can you create and populate an array with a single instruction?
6. How can you add elements to a numeric array without specifying an index location?
7. How can you retrieve a value from a numeric array?
8. How can you reference a numeric array element using a variable?
9. How would you create and populate a new associative array to hold the names and phone numbers of three contacts?
10. How can you retrieve a value from an associative array?

Self-Test Questions in PHP Language For Beginners Part 7

What is RDD?


RDD is the resilient distributed dataset (RDD). An RDD is simply a distributed collection of elements.

In Spark all work is expressed as either creating new RDDs, transforming existing RDDs, or calling operations on RDDs to compute a result.

There are some RDD basics you need to know about them, 

An RDD in Spark is simply an immutable distributed collection of objects. Each RDD is split into multiple partitions, which may be computed on different nodes of the cluster. RDDs can contain any type of Python, Java, or Scala objects, including userdefined classes.

Once created, RDDs offer two types of operations: transformations and actions. Transformations construct a new RDD from a previous one. For example, one common transformation is filtering data that matches a predicate. In our text file example, we can use this to create a new RDD holding just the strings that contain the word Python

What is RDD?

Self-Test Questions in PHP Language For Beginners Part 6


1. With which operator can you test whether two values evaluate to the same result?
2. How can you test whether two values evaluate to the same result and are both of the same type?
3. What are the results of these expressions: a) TRUE xor TRUE, b) TRUE xor FALSE, c) FALSE xor TRUE, and d) FALSE xor FALSE?
4. What is the result of !(23 === '23')?
5. What single expression might you use to set the variable $bulb to the value 1 when the variable $daypart has the value 'night', and 0 when it doesn’t?
6. To what value will PHP evaluate the expression 5 * 4 + 3 / 2 + 1?
7. How can you force PHP to evaluate the expression 1 + 2 / 3 * 4 – 5 from left to right?
8. Do the math operators (+, -, *, and /) have right-to-left or left-to-right associativity?
9. Do the assignment operators have right-to-left or left-to-right associativity?
10. When using the || operator, why is it a good idea to place the most likely to be TRUE expression on the left?

Self-Test Questions in PHP Language For Beginners Part 6

Self-Test Questions in PHP Language For Beginners Part 12


1. Which type of PHP loop is not entered unless an expression evaluates to TRUE, and then continues looping until the expression is FALSE?
2. Are curly braces required around loop statements?
3. With which type of loop is at least one iteration guaranteed to occur?
4. With which type of loop can you initialize variables, test for conditions, and modify variables after each iteration, all in a single statement?
5. Which character separates the three sections of a for() loop?
6. How can you include additional variable initializations and post-iteration assignments in a for() loop?
7. With which keyword can you cease execution of a loop, and move program flow to the following statement after the loop?
8. How can you break out of the current loop as well as another loop that contains it?
9. With which keyword can you skip the current iteration of a loop, and move onto the next iteration?
10. While in a loop, how can you drop out of the loop and skip an iteration in the enclosing loop structure?

Self-Test Questions in PHP Language For Beginners Part 12

Self-Test Questions in PHP Language For Beginners Part 11


1. What is the basic PHP construct for testing whether an expression evaluates to TRUE?
2. Within which pair of characters must you enclose if() statements when there is more than one?
3. What statement can you use to take action if the result of an if() condition is FALSE?
4. When an if() expression evaluates to FALSE, how can you then test another expression?
5. How many if(), elseif(), and else statements can you use in a sequence of conditions?
6. In an if() … elseif() … else construct, what is a good rule of thumb to apply to how statements should be encapsulated with curly braces?
7. When there is more than one elseif() statement in a sequence of conditions, what can be a better construct to use instead of if() … elseif() … else?
8. Which keyword is used to test each individual condition in a switch() statement?
9. What keyword is used to signify the end of a sequence of statements following a case keyword?
10. In a switch() statement, which keyword is the equivalent of the else section, as used with an if() construct?

Self-Test Questions in PHP Language For Beginners Part 11

What Is Apache Spark?


Apache Spark is a cluster computing platform designed to be fast and generalpurpose.

On the speed side, Spark extends the popular MapReduce model to efficiently support more types of computations, including interactive queries and stream processing. Speed is important in processing large datasets, as it means the difference between exploring data interactively and waiting minutes or hours. One of the main features Spark offers for speed is the ability to run computations in memory, but the system is also more efficient than MapReduce for complex applications running on disk.

On the generality side, Spark is designed to cover a wide range of workloads that previously required separate distributed systems, including batch applications, iterative algorithms, interactive queries, and streaming. By supporting these workloads in the same engine, Spark makes it easy and inexpensive to combine different processing types, which is often necessary in production data analysis pipelines. In addition, it reduces the management burden of maintaining separate tools.

Spark is designed to be highly accessible, offering simple APIs in Python, Java, Scala, and SQL, and rich built-in libraries. It also integrates closely with other Big Data tools. In particular, Spark can run in Hadoop clusters and access any Hadoop data source, including Cassandra.

We are living in a world having a big data.

What Is Apache Spark?

What is secondary storage?


Secondary storage is a type of memory that can hold data for long periods of time, even when there is no power to the computer. Programs are normally stored in secondary memory and loaded into main memory as needed. Important data, such as word processing documents, payroll data, and inventory records, is saved to secondary storage as well.

The most common type of secondary storage device is the disk drive. A traditional disk drive stores data by magnetically encoding it onto a spinning circular disk. Solid-state drives, which store data in solid-state memory, are increasingly becoming popular. A solidstate drive has no moving parts and operates faster than a traditional disk drive. Most computers have some sort of secondary storage device, either a traditional disk drive or a solid-state drive, mounted inside their case. External storage devices, which connect to one of the computer’s communication ports, are also available. External storage devices can be used to create backup copies of important data or to move data to another computer.

In addition to external storage devices, many types of devices have been created for copying data and for moving it to other computers. For many years floppy disk drives were popular. A floppy disk drive records data onto a small floppy disk, which can be removed from the drive. Floppy disks have many disadvantages, however. They hold only a small amount of data, are slow to access data, and can be unreliable. Floppy disk drives are rarely used today, in favor of superior devices such as USB drives. USB drives are small devices that plug into the computer’s USB (universal serial bus) port and appear to the system as a disk drive. These drives do not actually contain a disk, however. They store data in a special type of memory known as flash memory. USB drives, which are also known as memory sticks and flash drives, are inexpensive, reliable, and small enough to be carried in your pocket.

Optical devices such as the CD (compact disc) and the DVD (digital versatile disc) are also popular for data storage. Data is not recorded magnetically on an optical disc, but is encoded as a series of pits on the disc surface. CD and DVD drives use a laser to detect the pits and thus read the encoded data. Optical discs hold large amounts of data, and because recordable CD and DVD drives are now commonplace, they are good mediums for creating backup copies of data.

What is secondary storage?

Self-Test Questions in PHP Language For Beginners Part 5


1. What are the four basic arithmetic operators and the symbols used for them in PHP?
2. Which operators are used for incrementing and decrementing variables?
3. What is the difference between pre- and post-incrementing and decrementing?
4. What is the modulus operator symbol, and what does it do?
5. With which function can you return a number as a non-negative value, regardless of whether it is positive or negative?
6. Given a numeric variable called $v that may have a negative, zero, or positive value, which math function out of min() or max() can be used (and how) to replace any negative value with 0, but leave a positive value untouched?
7. How can you obtain a pseudo-random number between 1 and 100, inclusive?
8. How can you combine the mathematical addition operator with the assignment operator to create a shorter expression than, for example, $a = $a + 23;?
9. If $a has the value 58, what will the expression $a /= 2; evaluate to?
10. How can you set the variable $n to contain the remainder after dividing it by 11?

Self-Test Questions in PHP Language For Beginners Part 5

Self-Test Questions in PHP Language For Beginners Part 4


1. What is a PHP class constant?
2. How do you define a constant in PHP?
3. What are predefined constants?
4. What is the difference between the print and echo commands?
5. Is this a valid PHP statement? ($var == TRUE) ? echo "true" : echo "false";
6. Which superglobal arrays handle information sent to a PHP program via forms sent using Get and Post methods?
7. Which superglobal array contains cookie data?
8. With what PHP statement would you display the URL of a page from which a user was referred to the current one?
9. How can you sanitize input and other data by replacing characters in HTML tags with entities so that the browser displays tag names as text (rather than acting on them)?
10. With which command can you get PHP to display its configuration information as well as the current environment and script?
The answer is on the left of page.

Self-Test Questions in PHP Language For Beginners Part 4

Self-Test Questions in PHP Language For Beginners Part 3



1. Is PHP case sensitive or case insensitive?
2. What are spaces, tabs, linefeeds, and some other nonalphanumeric/punctuation characters collectively known as?
3. What does PHP do with whitespace?
4. What is a numeric variable?
5. What is a string variable?
6. How can you include quotation marks in a string that are of the same type that enclose the string (and also include special characters in a string)?
7. What is a heredoc string?
8. Do PHP environment variables permanently retain the type they are initially assigned?
9. How can you force PHP to store a certain type of value in a variable?
10. How can you easily use a variable’s value within a string without first breaking the string up into smaller parts?

Self-Test Questions in PHP Language For Beginners Part 3

Self-Test Questions in PHP Language For Beginners Part 2


1. Where in a document can you place sections of PHP code?
2. How can you include a file of PHP instructions into a document?
3. How can you prevent an external PHP file from being included multiple times?
4. How can you ensure that an external PHP file is included (issuing an error if this is not possible)?
5. How can you ensure that a PHP file is included and that it doesn’t get included more than once?
6. How can you create a single-line comment in PHP?
7. How can you create a multiline comment in PHP?
8. What must you place after each PHP instruction to indicate it is complete?
9. Is this line of code legal PHP?
$items = 120; $selection = 7;
10. Will this line of PHP code work?
$items = 120 $selection = 7;
The Answer is on the left of page.

Self-Test Questions in PHP Language For Beginners Part 2

Self-Test Questions in PHP Language For Beginners Part 1


1. What are the three major platforms on which PHP is available?
2. Is PHP a compiled or scripted language?
3. How many sections of PHP can you include in an HTML document?
4. Which character must be placed in front of all PHP variables?
5. Does PHP support object-oriented programming (OOP)?
6. What file extension should you give to PHP documents?
7. What are the five main browsers with which you should test your PHP programs?
8. With which software can you write and edit PHP programs?
9. How can you install a PHP server on your computer?
10. From where are PHP programs stored and run on your computer?
The Answer is on the left of page.

Self-Test Questions in PHP Language For Beginners

PHP Basics You Should Study At The First Time

There are more things to study in PHP Web Development. Here, we have 12 PHP Basics you should study at the first time. It will help you understand more about PHP Language,

1. Introduction to PHP
2. Incorporating PHP into a Web Page
3. Learning PHP Language Syntax
4. Using Constants and Superglobals
5. Working with Arithmetic Operators
6. Applying Comparison and Logical Operators
7. Creating Arrays
8. Managing Multidimensional Arrays
9. Calling Array Functions
10. Advanced Array Manipulation
11. Controlling Program Flow
12. Looping Sections of Code


PHP Basics You Should Study At The First Time

Self-Test Questions about HTML Code List

Test how much you have learned about HTML Code List with these questions. If you don’t know an answer, go back and reread the relevant section until your knowledge is complete. You can find the answers in this page. 

1.   What does the acronym HTML stand for? 
2.   What is the difference between a web browser and a web server? 
3.   What does the acronym HTTP stand for? 
4.   What does a web proxy do? 
5.   What file extension is often used by HTML documents? 
6.   What is a 404 page more commonly known as? 
7.   What is the difference between an IP address and a domain name? 
8.   What is a query string? 
9.   What is an HTML tag? 
10.   What is a tag attribute?

HTML Tags

HTML documents are simply text files in which extra tags have been added within angle brackets, like this: <head>. So, for example, the tag <i> tells the web browser that all following text should be displayed using an italic font. And when a </i> is encountered, the preceding slash (/) character tells the browser to disable the italics. Therefore you frequently find HTML tags in pairs. For example, in the following line of HTML the word fox will appear in bold face, and dog in italics: 

The <b>fox</b> jumps over the <i>dog</i>. 

The result looks like this: The fox jumps over the dog.

The Difference Between Get and Post Requests

When requesting a document, it is possible for the web client (or browser) to request additional information or send information to the web server using either Get or Post requests. In a Get request, data is appended to the tail of a URL in the form of a query string, like this:

http://google.com/search?q=html5

This URL directly sends the search lookup string of html5 to the Google web servers by passing it as a string value in the argument q. When Google sees this request, it knows to return to you all the pages it thinks are relevant to the request. A longer such request might look like the following, in which the + symbol is used in place of spaces:

http://google.com/search?q=html5+course

Here the search string html5 course is passed to Google. In a Post request, however, the additional information is passed from the client to the server in the headers, which is neater as far as the user goes, because it does not appear as part of the URL. Both get and post requests are discussed in detail later in this book.

The Difference Between Get and Post Requests

What Is HTML?

HTML stands for HyperText Markup Language, and it was invented by Sir Timothy Berners-Lee in the early 1990s to solve the problem of quickly and efficiently distributing documents between scientists around the world who were working with experimenters at CERN (the European Laboratory for Particle Physics, where the Large Hadron Collider is now also situated).

The Internet was already in place and there were tens of thousands of computers connected to each other using it, but there was no easy means of publishing content for all to see, and in which references to other documents could be easily followed. So Berners-Lee created a hyperlinking framework he called the Hyper Text Transfer Protocol, or HTTP (the same set of letters at the front of a web address). He also created a language to use this protocol, which he called HTML (for Hyper Text Markup Language).

Nhận order thuốc bổ xương khớp Glucosamine ở Mỹ


Tuy là một shop nhận order sách ngoại văn từ Amazon về Việt Nam nhưng shop cũng nhận order thuốc bổ xương khớp Glucosamine từ Mỹ về Việt Nam nhãn hiệu Kirkland.

Bạn muốn mua thuốc Glucosamine ở đâu? Thì hãy liên hệ shop "Bookstore Truyện Sách Tiếng Anh" do shop ở USA nên hàng mua luôn chất lượng và an toàn cho các bạn. Do chính admin lại các store trên nước Mỹ mua và gửi hàng về Việt Nam.

Mua Kirkland Signature™ Glucosamine with MSM, 375 Tablets - Giá: 700.000 VNĐ

Glucosamin là một chất tự nhiên được tìm thấy trong các sụn khớp khỏe mạnh của cơ thể. Ở dạng dược phẩm, glucosamin có trong thuốc bổ khớp glucosamine 1500mg plus msm tham gia vào quá trình tổng hợp proteoglycan tạo thành mô sụn, tăng sản xuất chất nhày dịch khớp, kích thích sinh sản mô liên kết của xương, giảm quá trình mất calcium của xương, đồng thời ức chế các enzym phá hủy sụn khớp (collagenase, phospholinase A) và giảm các gốc tự do (superoxide) là những chất phá hủy các tế bào sinh sụn.

Liên hệ qua: https://www.facebook.com/bookstoretruyensachtienganh

Nhận order thuốc bổ xương khớp Glucosamine ở Mỹ

Angry Birds Fight: Characters


1. Chuck
According to Rovio, Chuck is fast like a ninja, and crazy as a loon. Think fast and Chuck can make your opponent's head spin!

2. Bomb
Bomb is Angry Birds Fight's demolition specialist. Even he doesn't know how to control his powerful explosion, claims Rovio.

3. Stella
Stella has it all, brains and beauty. You can use her bubbles to blow away your foes, says Rovio.

4. Red
Brave, strong and aggressive, Red is leader of the Angry Birds Fight fl ock. Be aggressive to maximise his fighting power, says Rovio.

Angry Birds Fight: Characters

The Manchester Writing Competition - First price £10,000


This is 2015 Manchester Poetry and Fiction Prizes.

Entry fee: £17.50
Deadline: 25 September 2015

Enter online or request a postal entry pack:
www.manchesterwritingcompetition.co.uk/wf
writingschool@mmu.ac.uk

If you are a good writer or you have some good topics to write about something, you can join in it. Making sure you have writing skills, grammar rules, and creative writing prompts.

The Manchester Writing Competition - First price £10,000

How to be a good writer


If you want to be a good writers. You have to keep several things in mind. There are three of the most important things are Subject, Purpose, and Audience.



You will find it easier to write if you:
- choose a subject that you know well and understand.
- have a clear purpose for writing.
- identify an audience.

Another way, they called SPA, which is an acronym that stands for subject, purpose, and audience. SPA will help you remember these things.

Keeping these three elements in mind will help your writing stay focused.

1. Subject
Is it important for your writing an essay? Yes, it is important to choose a subject that is not too broad. You will usually have to go through a process of narrowing down the general subject until you find an appropriate topic.

2. Purpose
When you start to write an essay, you should ask in your mind the question "Why am I writing?". The three most common purposes for writing are to entertain, to inform, and to persuade.

3. Audience
Finally, the subject and the purpose are affected by the audience who you are writing for. Remember that all audiences have expectations, but those expectations vary from one audience to another.

After this post, you feel easy how to write an essay about yourself or any essays.

Mua bán và nhận order sách ngoại văn toàn quốc Việt Nam Tập 1


Hè đã bắt đầu lâu rồi và sách ngoại văn đã sale off nhiều tuần nay. Hầu như tất cả trang web và các store bán sách đều để bảng chữ "Books for sale", hay "Used books for sale". Tuy là những sách cũ hay còn gọi là used book, nhưng chất lượng nó không hề khác gì so với sách mới (new book). Đặc biệt, thì giá của những cuốn sách cũ như thế rất rẻ so với giá của sách mới một nửa.

Nếu bạn là một người sống ở Mỹ thì bạn có thể online dùng Google để tìm những cuốn sách cũ giá rẻ như "Online Books in Houston" or "Half Price Books in Houston". Sau khi bạn tìm được cuốn sách bạn ưng ý với giá cực rẻ nhưng vấn đề quan trọng là làm sao để mua và tìm cách shipping về Việt Nam. Mà không phải tốn kém nhiều cho chi phí vận chuyển (shipping prices). Thì các bạn có thể tìm đến "Bookstore truyện Sách Tiếng Anh", nơi nhận order các loại used book và new book từ Amazon trên khắp toàn nước Mỹ. Nhưng tùy từng loại sách và sách khác nhau thì bạn nên mua used book của seller hay mua new book của Amazon. Điều đó, Admin của trang sẽ giúp các bạn đánh giá để chọn cách tốt nhất có sách.

Shop đã mở ra được hơn 2 tháng, cũng đã được nhiều bạn ủng hộ và phát triển không kém gì những shop sách ngoại văn ở Việt Nam.

Nhưng có một điều mà đa số các bạn khi order sách tại shop đều hỏi tại sao cũng một cuốn sách used book giá 10$ lại mắc hơn một cuốn sách được mua new từ Amazon giá 12$. Điều này thật đơn giản thôi. Vì Admin có tài khoản của sinh viên nên khi order bất kì thứ gì trên amazon thì dc free shipping và sách về nhà trong vòng 2 ngày. Nhưng ngược lại, khi bạn order từ seller để mua used book thì bạn phải đợi từ 10 ngày đến 14 ngày sách mới về và tốn thêm chi phí 3.99$ để trả tiền shipping cho seller.

Used book: 10$ + 3.99$ = 14$ (3.99$ tiền shipping cho seller để gửi sách trong nước mỹ).
New book from Amazon: 12$ + free shipping = 12$

Rồi còn chi phí gửi từ US về Việt Nam, tùy theo khối lượng của cuốn sách hay box set. Nhưng admin luôn tìm cách để có giá thấp nhất cho bạn đọc sách (all my booklovers <3).

Và cũng qua bài viết này giúp các bạn hiểu hơn shop "Bookstore Truyện Sách Tiếng Anh". Và bây giờ shop đã mở rộng việc order những mặt hàng khác xuất xứ từ USA để phục vụ cho các bạn ở Việt Nam. Sẽ có một bài viết chi tiết để giới thiệu những sản phẩm shop nhận order.

Bên dưới đây là những used books giá rẻ sau 1 vòng dạo bookstores

1. Easy Tarot Reading: The Process Revealed in Ten True Readings (tác giả:  Josephine Ellershaw)
2. A Baker's Field Guide to Chocolate Chip Cookies (tác giả: Dede Wilson)
3. Your Case is Hopeless: Bracing Advice from the "Boy's Own Paper" (tác giả: Sabbagh, Karl published by John Murray (2007))
4. Marley & Me: Life and Love with the World's Worst Dog (tác giả: John Gorgan)
5. Field of Prey (Lucas Davenport) (tác giả: John Sandford)
6. Fresh Baked: Over 80 Tantalizing Recipes for Cakes, Pastries, Biscuits and Breads (tác giả: Louise Pickford)
7. 101 Recipes You Can't Live Without: The Prevention Cookbook (tác giả: Lori Powell)

Bookstore Truyện Sách Tiếng Anh: https://www.facebook.com/bookstoretruyensachtienganh
Facebook: https://www.facebook.com/profile.php?id=100009337097614

Mua bán và nhận order sách ngoại văn toàn quốc Việt Nam Tập 1

Mua Bán Sách Ngoại Văn Toàn Quốc 5/7/2015


Haiku for the Single Girl (new hardcover)
Pinocchio (Classic Collection) (new hardcover)
The Birth of Korean Cool (new paperback)
This Book Is Full of Spiders (new paperback)
Suck It Up (new paperback)
The Enchanted (new hardcover)
Speak (new paperback)
The 100 (new hardcover)
Bring up the Bodies (new hardcover)
The 7 Habits of Highly Effective People (new paperback)
Steve Jobs: The Man Who Thought Different (new hardcover)
Sea of Shadows (new hardcover)
Beth's Story 1914 (new hardcover)

- Các sách ngoại văn cũ bên trên đang sale tại shop. Ngoài ra, shop còn nhận order sách ngoại văn từ Amazon và những loại sách ngoại văn khác theo yêu cầu của các bạn.

- Liên hệ đặt sách qua
Facebook: https://www.facebook.com/profile.php?id=100009337097614
Fanpage: https://www.facebook.com/bookstoretruyensachtienganh

Ngoài ra, shop nhận order các mặt hàng sản xuất và nhập từ USA về Việt Nam.
- Tarot Card (Các bộ bài được order từ USA, không phải hàng handmade. Và được mua, order trực tiếp từ Amazon và các trang gốc của Tarot nổi tiếng).

- Sáp thơm Yankee Candle (Loại nến hay sáp thơm được yêu thích nhất có xuất xứ từ USA. Loại sáp thơm này mang lại cho bạn cảm giác tuyệt vời với mùi thơm nhẹ nhàng, tạo không khí tươi mát sản khoái. Được sử dụng để khử mùi trong xe, phòng, và các nơi khác như tủ quần áo, ngăn tủ).

- Giày Hiệu (Các nhãn hiệu như Adidas, Nike, Vans, Puma, New Balance, ..etc)

- Đồng hồ hiệu các loại

- Son môi - Lipstick (Các nhãn hiệu như: ColourPop, Lipsmacker, EOS, Revlon, Maybelline, L'oreal, Covergirl, E.L.F, Rimmel, Milani, Rimmel London, ...etc).

- Các loại thuốc bổ xương khớp, canxi, bổ mắt (Các loại như Glucosamine, Omega 3, Fish Oil, hay Calcium, Vitamin E của các nhãn hiệu nổi tiếng ở USA).

Mua Bán Sách Ngoại Văn Toàn Quốc 20/6/2015


1. The Old Man and the Sea (used - very good - paperback)
2. Coraline (used - very good - paperback)
3. The Art of Racing in the Rain (used - very good - paperback)
4. Miss Peregrine's Home for Peculiar Children (used - like new - hardcover)
5. The Graveyard Book (used - very good - hardcover)
6. The Great Gatsby (used - good - paperback)
7. The Fault in Our Stars (used - like new - paperback)
8. Eat Pray Love (used - very good- paperback)
9. A Long Way Down (used - like new - hardcover)
10. The Secret (used - like new - hardcover)
11. The Vampire Diaries - The Return: Nightfall (used - like new - hardcover)
12. The Alchemist (used - very good - paperback)
13. The Fault in Our Stars (used - like new - hardcover)
14. Flipped (used - like new - paperback)
15. Five Ancestors Out of the Ashes #1: Phoenix (used - like new - hardcover)
16. Dragon Rider (used - like new - hardcover)
17. A Long Way Gone (used - like new - hardcover)
18. Gone Girl (used - like new - hardcover)
19. The Wind in the Willow (used - very good - hardcover)
20. I am Malala (used - very good - hardcover)
21. Steve Jobs (used - like new - hardcover)


- Các sách ngoại văn cũ bên trên đang sale tại shop. Ngoài ra, shop còn nhận order sách ngoại văn từ Amazon và những loại sách ngoại văn khác theo yêu cầu của các bạn.

- Liên hệ đặt sách qua
Facebook: https://www.facebook.com/profile.php?id=100009337097614
Fanpage: https://www.facebook.com/bookstoretruyensachtienganh

Ngoài ra, shop nhận order các mặt hàng sản xuất và nhập từ USA về Việt Nam.
- Tarot Card (Các bộ bài được order từ USA, không phải hàng handmade. Và được mua, order trực tiếp từ Amazon và các trang gốc của Tarot nổi tiếng).

- Sáp thơm Yankee Candle (Loại nến hay sáp thơm được yêu thích nhất có xuất xứ từ USA. Loại sáp thơm này mang lại cho bạn cảm giác tuyệt vời với mùi thơm nhẹ nhàng, tạo không khí tươi mát sản khoái. Được sử dụng để khử mùi trong xe, phòng, và các nơi khác như tủ quần áo, ngăn tủ).

- Giày Hiệu (Các nhãn hiệu như Adidas, Nike, Vans, Puma, New Balance, ..etc)

- Đồng hồ hiệu các loại

- Son môi - Lipstick (Các nhãn hiệu như: ColourPop, Lipsmacker, EOS, Revlon, Maybelline, L'oreal, Covergirl, E.L.F, Rimmel, Milani, Rimmel London, ...etc).

- Các loại thuốc bổ xương khớp, canxi, bổ mắt (Các loại như Glucosamine, Omega 3, Fish Oil, hay Calcium, Vitamin E của các nhãn hiệu nổi tiếng ở USA).