Magic Methods-Php





Magic Methods and Constants

Magicmethods are specially named methods that
can be defi nedin any class and are executed via
 builtin PHP functionality.
Magic methods always begin with a double
underscore. In fact, the magic methods  __destruct() and __construct() have already been used several times.

It is often useful to determine where in the code output originates.

This is the purpose of all of the magic  constants and is particularlyuseful when writing custom logging functions.

 The seven magic constants are as follows:
__CLASS__ equates to the class in which the constant is referenced.

 As noted earlier, this variable is always equal to the class in which it is defi ned, which is not always the class  that was instantiated.

For example, __CLASS__ as defi ned inside Node always returns Node even  if the method is part of an object that  was instantiated as a descendant class.
 In addition to debugging, the class constant is also useful for static callback functions.
__FILE__ is always equal to the file name where the constant is referenced.
__LINE__ is used in conjunction with __FILE__ in order  to output a location in code.

Php HTTP Basics

Php Web Application
Php Email Codes
Php Array
Php Ifelse
Php variables
Php Substrings
Php Mysql Functions
php-sessions

Php HTTP Basics

When a web browser requests a web page, it sends an HTTP request
message to a web server. The request message always includes
some header information, and it sometimes also includes a body.
 The web server responds with a reply

 message, which always includes header information and usually
 contains a body. The first line of an HTTP request looks like this:
 GET /index.html HTTP/1.1 This line specifies an HTTP command,
 called a method , followed by the address of a document and the
 version of the HTTP protocol being used. In this case, the request
 is using the GET method to ask for the index.html

document using HTTP 1.1. After this initial line, the request can contain
optional header information that gives the server additional data about the request.
 For example: User-Agent: Mozilla/5.0 Windows 2000; U Opera 6.0 [en]
Accept: image/gif, image/jpeg, text/*, */*


The User-Agent header provides information about the web browser,
 while the Accept headerspecifies the MIME types that the browser
 accepts. After any headers, the request contains a blank line,
to indicate the end of the header section. The request can also
contain additional data, if that is appropriate for the method being
used . If the request doesn't contain any data, it ends with a blank line.
The web server receives the request,
processes it, and sends a response. The first line of an HTTP response
looks like this:
 HTTP/1.1 200 OK

 This line specifies the protocol version, a status code, and a description
 of that code. In this case, the status code is "200", meaning that the
 request was successful hence the description OK.

 After the status line, the response contains headers that give the client
additional information about the response. For example: Date: Sat, 26
 Jan 2002 20:25:12 GMT Server: Apache 1.3.22 Unix mod_perl/1.26
PHP/4.1.0 Content-Type: text/html Content-Length: 141 The
Server header provides information about the web server software,
 while the Content-Type header specifies the MIME type of the data
included in the response. After the headers, the response contains a
blank line, followed by the requested data, if the request was successful.

socket tcp server with php

Php Web Application
Php Email Codes
Php Array
Php Ifelse
Php variables
Php Substrings
Php Mysql Functions
php-sessions
HTTP is the standard that allows documents to be communicated and shared over
 the Web. From a network perspective, HTTP is an application-layer protocol
that is built on top of TCP/IP. Using our courier analogy from the previous
 section, HTTP is a kind of cover letter—like a fax cover sheet—that is stored
 in the envelope and tells the receiver what language the document is in,
instructions on how to read the letter, and how to reply.

Since the original version, HTTP/0.9, there have only been two revisions of
 the HTTP standard. HTTP/1.0 was released as RFC-1945[A] in May 1996 and
 HTTP/1.1 as RFC-2616 in June 1999.

HTTP is simple: a client—most conspicuously a web browser—sends a request for
some resource to a HTTP server, and the server sends back a response. The HTTP
 response carries the resource—the HTML document or image or whatever—as its
payload back to the client.

A simulated HTTP request using telnet

% telnet www.w3.org 80
Trying 18.29.1.35...
Connected to www.w3.org.
Escape character is '^]'.
HEAD / HTTP/1.1

HTTP/1.1 200 OK
Date: Wed, 26 Sep 2001 03:42:32 GMT
Server: Apache/1.3.6 (Unix) PHP/3.0.11
P3P: policyref="http://www.w3.org/2001/05/P3P/p3p.xml"
Cache-Control: max-age=600
Expires: Wed, 26 Sep 2001 03:52:32 GMT
Last-Modified: Tue, 25 Sep 2001 21:08:00 GMT
ETag: "5b42a7-4b06-3bb0f230"
Accept-Ranges: bytes
Content-Length: 19206
Connection: close
Content-Type: text/html; charset=us-ascii

Connection closed by foreign host.
%

Php session Info and cookies


Php session Info and cookies

1Cookiesare small files saved on the user’s computer
2 Cookies can only be readfrom the issuing domain
3 Cookies can have an expiry time, if it is not set, then the cookie expireswhen the browseris closed
4 Sessions are like global variablesstored on the server
5 Each session is given a unique identification idthat is used to track the variables for a user.
6 Both cookies and sessionsmust be started before any HTML tagshave been sentto the browser.

Cookies are great little tools, but they get a bad rap in the press when nasty people misuse them.
These little bits of text will make your development life much easier if you use them properly.
 #Set a cookie
 #Extract data from a cookie 

Sessions are like cookies on steroids.
 Using sessions, you can maintain user-specific information without setting multiple cookies or even using a database.
 Start a session
Add a variable to the $_SESSION superglobal
Enable a per-user access count
Maintain user preferences throughout multiple pages


Creating a Simple Php Functions


Creating a Simple Php Functions

As you program, you'll discover that there are certain sections of code you frequently use, either within a single script or in several. Placing these routines into a self-defined function can save you time and make your programming easier, especially as your Web sites become larger. Once you create a function, the actions of that function take place each time the function is called, just as print() will send text to the browser with each use. The syntax to create a user-defined function is: function FunctionName () { statement(s); }

You can use roughly the same naming conventions for the function name as you do for variables, just without the initial dollar sign. The most important rule is to remain consistent. Second to that is the suggestion of creating meaningful function names, just as you ought to write representative variable names CreateHeader would be a better function name than Function1.

Remember not to use spaces, though, as that would constitute two separate words for the function name, which will result in error messages the underscore is a logical replacement for the space, for example Create_Header is a valid function name.

Any valid PHP code can go within the statements area of the function, including calls to other functions. There is also no limit to the number of statements a function has, but make sure each statement ends with a semi-colon.

Bipasha basu-the Fire

Bipasha basu-the Fire

















Internet/E-commerce jobs

It jobs and computing careers on totaljobs.com find permanent and part time internet
 jobs and upload your cv to apply now. Guide to finding jobs online: online job search
 tutorial - job the guide to finding jobs online: where and how to find jobs, from
 employer websites to social media for job search and job aggregators like indeed.com.



 Online jobs search results. Online jobs, part time work from home & data entry jobs
 online jobs for students.com is the best place for students to find online jobs and
 make money online opportunities tailored to students interviews with students.
Job-hunt.org - jobs, employers, and job search resources and jobhuntorg, free
award-winning jobs portal, one of the web s oldest and most trusted sources of
job search resources and advice.


Best jobs online is your online employment community browse latest job vacancies and
join the recruitment. What are the different types of online jobs internet business
jobs and careers: search jobs in internet business all internet business jobs updated daily.
 Simply the best online jobs - ezinearticles submission compare the best job listing solutions
 if you post job openings on multiple job boards then these solutions are a must for you
 post job openings to multiple job. Online jobs in the philippines there are many types
of online jobs, including working as a graphic artist, a website designer,
 a forum moderator, an online.

Part time jobs online, work from home, ad posting jobs, data  are you convinced about
 the usefulness of the internet for employers recruiting for and filling jobs you should
 be you can post jobs online and get the attention of. Part time jobs online, work from
 home, ad posting jobs, data learn how to make money online at home discover how teens
 make money online with free resources blogging, seo, ad sense and more. Online jobs work
at home part time jobs this blog is made for your benefit and convenience to find online
 jobs without any investments and how to work at home without paying fee. Online jobs ph
 jobs & careers in online marketing, internet marketing, digital marketing and online
advertising.


Online marketing jobs & careers - internet marketing jobs  want to know about an online
 job application they are becoming the norm for employers who wants to store hundreds of
 paper resumes when you can ask applicants to. Homeworkers - work from home jobs, home
 based business search results. Dice.com - official site data entry jobs, offline data
entry jobs, online data entry jobs without registration fees earn $1000 per month work
from home no registration fees data entry jobs. Free online jobs disclaimer all jobs
online posted here are free and not paid advertisements philippine jobs online is not
connected in any way whatsoever to these online job posts. Internet job your work at
home telecommuting resource center find legitimate work at home jobs, information on
how to start a home based business, home based medical courses

Adding CSS style in php script

<?php


       echo '<span style="font-size:10px">';    // add  styles as  style attribute
       echo 'test';
       echo '</span> ';
       echo '<p style="font-size:20px">';
       echo $title    = $_POST['text'];
       echo "</p>";
      

?>


In PHP, all variable names begin with a dollar sign ($). The $ is followed by an
 alphabetic character or an underscore, and optionally followed by a sequence of
 alphanumeric characters and underscores. There is no limit on the length of a
variable name. Variable names in PHP are case-sensitive. Here are some examples:

$k
$cot
$Sar_name
$_MPS

In PHP, unlike in many other languages, you do not have to explicitly declare variables.
 PHP automatically declares a variable the first time a value is assigned to it.
PHP variables are untyped; you can assign a value of any type to a variable.

PHP uses a symbol table to store the list of variable names and their values.
There are two kinds of symbol tables in PHP: the global symbol table, which stores
the list of global variables, and the function-local symbol table, which stores the
set of variables available inside each function.


 Dynamic Variables
Sometimes it is useful to set and use variables dynamically. Normally, you assign a variable like this:

$var = "derro";
Now let's say you want a variable whose name is the value of the $var variable. You can do that like this:

$$var = "Jinna";
PHP parses $$var by first dereferencing the innermost variable, meaning that
$var becomes "derro". The expression that's left is $"hello", which is just $derro.
 In other words, we have just created a new variable named hello and assigned it
the value "Jinna". You can nest dynamic variables to an infinite level in PHP,
although once you get beyond two levels, it can be very confusing for someone who
is trying to read your code.

dhoom 3 - back in action


Dhoom 3 - back in action, most awaited bollywood movie watch trailers, promos,
 wallpaper, news about movie and stars aamir khan, katrina kaif, bipasha basu.

Director vijay krishna acharya s dhoom 3 is doing well at the box-office the film
 has grossed rs 101 crore in the first week at the box-office.dhoom 3 written and
directed by vijay krishna acharya and produced by aditya chopra.






Targeted Website Traffic

Getting traffic online is very easy to do. The most important part about being successful online
is getting your website noticed. You should be spending most of your days promoting your site over
anything else in order to make money off of it.

I was once clueless about how to even create traffic online let alone even knowing what traffic meant.
Well, it has been about a year since I have been inthis online marketing business and has really
become my second nature.

Here I would like to share with you the simplest ways in which you can drive traffic to your site
immediately. Just remember the more things that youdo on the list below the better results you will
have with the traffic to your website. Hopefully after you are done reading threw this article you can
get busy on the promotion of your website.

Here are the few best ways to get traffic to your landing pages:
- Forum Participation
Article Marketing
Social Bookmarking
Myspace
Press Releases
Classified Ads
Viral Marketing
All of these forms of traffic combined can explode your sites traffic within days. When choosing the
proper sites in which you want to work with to create your traffic, make sure you choose the ones that
are highly ranked within Google. That way you can easily get first page results for your website. I ama
firm believer of article marketing myself. You don't necessarily have to use that form of traffic if
you don̢۪t want to but it will help you out in thelong run for creating many back links to your site.
Just always remember that consistency is always to best attitude to have when you have your own
business online. You have to stay devoted and on task when you are promoting your sites. Promotion is
the most important part about making money online. You can have the nicest website in the world but
it will never see the time of day if you never get the word out there that you are in business.
If you feel like you don't really have a startingpoint or you are not to sure on how to do the
above traffic generation techniques or if you wouldlike a guide on how to master in Internet Marketing
feel free to check out more of my articles.

Php-Associative Arrays

Arrays are another basic structure in programming languages. Arrays provide means for
storing a fixed set (or collection) of the same datatype in a convenient way, making
each element of your set indexable by using a unique key.

In the typical "conventional" programming languages, arrays are handled like this:

int my_int_array[786];          // allocate 786 integers in this array
This C code snippet declares an array called my_integer_array, containing 256 integers.
 You can address each of these integers by indexing the array with an ordinal value, for this array in a range from 0 to 255. (C starts counting from 0; the given number in the array definition specifies the number of integers you want to have available.) Indexing looks like this:

int my_integer = my_integer_array[4];
This retrieves the fifth element remember, C starts counting from 0 from the array
 and stores it in my_integer.

Arrays for coding
 Contents of Arrays can be stretched,
 Arrays easily help group related information such as server login detailstogether
 Arrays help write cleaner code.


 Arrays are special variableswith the capacityto store multi values.
 Arrays are flexibilityand can be easily stretchedto accommodate more values
 Numeric arraysuse numbers for the array keys
 Associative arraysuse descriptive namesfor array keys
 Multidimensionalarrays contain other arrays insidethem.
 The countfunction is used to get the numberof itemsthat have been stored in an array
 The is_arrayfunction is used to determinewhether a variableis a valid array or not.
 Other array functions include sort, ksort, assort etc.

 

Due to the nature of compiled languages, you were always bound to the previous
 definition of your variables. If you suddenly needed more than 256 integers in the array above, this was impossible. Of course, you could have defined this variable as a pointer to an integer array and allocated 257 elements for it—but what if you suddenly needed another element? You'd have to allocate new space, copy the old array contents, and free up the old, unused space.

PHP takes a different approach. Because PHP knows no typical variable declarations only type definitions
), new variables are allocated on the fly. Whenever you create a new variable by introducing its
 name into the namespace, you simply create storage space bound to this name—nothing more. The kind of data residing in this space is not restricted to a certain variable type. It can be reinterpreted on the fly, and of course resized, reallocated, whatever.

Take a look at this:

$my_var = 1;
$my_var = "Used to be an integer";
$my_var = array("Oh well, I like arrays better");


The first line creates a new variable $my_var.




PHP will find that an integer is going to be assigned to it; thus it sets the initial
 type of $my_var to integer. The second line, however, overwrites the contents of $my_var
 with a string. Using one of the conventional programming languages, this would have
resulted in an error at compile time, or at least an exception during runtime.
But PHP dynamically changes the type of $my_var to String and reallocates the variable
 so that enough storage space for the string is available. The third line then changes
the type of $my_var once more by creating an array out of it. PHP handles all cases
 transparently without complaining. (We know that other languages out there exist
without strict variable types.

Note: PHP 3.0 doesn't have proper garbage collection. When reallocating a variable,
 memory that's already allocated is not always being reused. In long-term scripts or
 scripts doing heavy processing.

Because formal variable declarations are not needed in PHP variable usage is completely
 dynamic. A special case in PHP's dynamic variable handling is arrays. You probably
know the common array type, the indexed array. Indexed arrays are arrays that are
indexed by ordinal numbers. These ordinal indices typically range from 0 to n, n
being the highest possible index. Languages such as Pascal allow indexing with
different ranges such as from 3 to 18; however, these ranges are transformed back
to 0-based indexes at runtime. The key feature of these ordinally indexed arrays is
that you can compute another index from any given base index. For example, suppose
you want to read out three consecutive array elements, starting from index 2:

$base_index = 2;

for($i = $base_index; $i < $base_index + 3; $i++)
    print("Element $i is $my_array[$i]<br>");
In every iteration of the for() statement, this little snippet computes the next
 index into the array by incrementing $i.

Associative arrays don't have this feature. The special thing about associative arrays
 is that they can be indexed with non-ordinal keys, such as strings, for example.
Every string used as an index has a value associated to it, thus the name associative arrays.
 As you can imagine, giving a string as base index doesn't allow guessing the next valid index
in the array. Thus, associative arrays can't be used to order data elements in an ordinal way.
 You have to know the array keys to retrieve their associated values.

Apart from that, the functions list() and each(), discussed earlier,
can be used to traverse associative arrays.

Indexed arrays are just a special form of associative arrays in PHP. Doing an unset() on
one of the elements in an indexed array will leave all other elements and their ordering
 intact, but produce a nonconsecutive array. See the earlier descriptions of
list() and each() for details.

Multidimensional Arrays
As the name suggests, multidimensional arrays are arrays with more than just one dimension.
 One-dimensional (or single-dimensional) arrays are the form in which arrays are mostly seen:

$my_array[0] = 1;
$my_array[1] = 777;
$my_array[2] = 45;

To index this type of array, you only need one index, which limits the number of possible
values to the range of this index. But it's often very useful to create multidimensional
arrays when handling complex datasets. Typical examples include bitmaps and screen buffers.
 When you look at your monitor, you see at least these days a two-dimensional projection of
 your desktop. The windows, bitmaps, command lines, cursors, pointers—everything is 2D.
To represent this data in a convenient way, you could of course serialize everything
into arrays with a single dimension—but the more appropriate method is to use arrays
with dimensions equal to those of the input data. For example, in order to store a bitmap
a set of pixels for a mouse pointer, you just add another index to your array:

// clear mouse bitmap
for($x = 0; $x < MOUSE_X_SIZE; $x++)
    for($y = 0; $y < MOUSE_Y_SIZE; $y++)
        $mouse_bitmap[$x][$y] = 0;

sonakshi sinha-The Beauty


Deepika Padukone- THe Miracle



Kareena Kapoor- the magic


























katrina-kaif-the gr8


LOAD DATA INFILE statement MySQL

LOAD DATA INFILE provides an alternative to INSERT for adding new
records to a table. With INSERT, you specify data values directly in the INSERT statement.
 LOAD DATA INFILE reads the values from a separate datafile.

The simplest form of the LOAD DATA INFILE statement specifies only the name of the datafile
 and the table into which to load the file:


LOAD DATA INFILE 'file_name' INTO TABLE table_name;


The filename is given as a string and must be quoted. MySQL assumes, unless told otherwise,
 that the file is located on the server host, that it has the default file format
tab-delimited  and newline-terminated lines, and that each input line contains a value
 for each column in the table. However, LOAD DATA INFILE has clauses that give you control
 over each of those aspects of data-loading operations and more:

Which table to load

The name and location of the datafile

Which columns to load

The format of the datafile

How to handle duplicate records

Whether to ignore lines at the beginning of the datafile

The syntax for LOAD DATA INFILE is as follows, where optional parts of
 the statement are indicated by square brackets:


LOAD DATA [LOCAL] INFILE 'file_name'

    [IGNORE | REPLACE]

    INTO TABLE table_name

    format_specifiers

    [IGNORE n LINES]

    [(column_list)]




The following sections explain how the various parts of the statement work.

Specifying the Datafile Location
LOAD DATA INFILE can read datafiles that are located on the server host
 or on the client host:

By default, MySQL assumes that the file is located on the server host.
The MySQL server reads the file directly.

If the statement begins with LOAD DATA LOCAL INFILE rather than with LOAD DATA INFILE,
 the file is read from the client host on which the statement is issued. In other words
, LOCAL means local to the client host from which the statement is issued. In this case,
 the client program reads the datafile and sends its contents over the network to the server.

The rules for interpreting the filename are somewhat different for the server
host and the client host.

Specifying the Location of Files on the Server Host
Without LOCAL in the LOAD DATA INFILE statement, MySQL looks for the datafile
 located on the server host and interprets the pathname as follows:

If you refer to the file by its full pathname, the server looks for the file
 in that exact location.

If you specify a relative name with a single component, the server looks for
the file in the database directory for the default database. (This isn't necessarily
the database that contains the table into which you're loading the file.)

If you specify a relative pathname with more than one component, the server
 interprets the name relative to its data directory.

Suppose that the server's data directory is /var/mysql/data, the database directory
 for the test database is /var/mysql/data/test, and the file data.txt is located in
that database directory. Using the filename interpretation rules just given, it's
possible to refer to the data.txt file three different ways in a LOAD DATA INFILE statement:

You can refer to the file by its full pathname:


LOAD DATA INFILE '/var/mysql/data/test/data.txt' INTO TABLE t;


If test is the default database, you can refer to a file in the database directory
using just the final component of its pathname:



LOAD DATA INFILE 'data.txt' INTO TABLE t;




You can refer to any file in or under the server's data directory by its
 pathname relative to that directory:

LOAD DATA INFILE './test/data.txt' INTO TABLE t;


Specifying the Location of Files on the Client Host
If you use LOCAL to read a datafile located on the client host, pathname
interpretation is simpler:

If you refer to the file by its full pathname, the client program looks for
 the file in that exact location.

If you specify a relative pathname, the client program looks for the file relative
 to its current directory. Normally, this is the directory in which you invoked the program.

Suppose that there's a datafile named data.txt located in the /var/tmp directory
on the client host and you invoke the mysql program while located in that directory.
 You can load the file into a table t using either of these two statements:


LOAD DATA LOCAL INFILE '/var/tmp/data.txt' INTO TABLE t;

LOAD DATA LOCAL INFILE 'data.txt' INTO TABLE t;


The first statement names the file using its full pathname. The second names the file relative
 to the current directory. If you invoke the mysql program in the /var directory instead, you
 can still load the file using the same full pathname. However, the relative pathname to the
 file is different than when running the program in the /var/tmp directory:


LOAD DATA LOCAL INFILE 'tmp/data.txt' INTO TABLE t;




Specifying Filenames on Windows
On Windows, the pathname separator character is \, but MySQL treats the backslash as
 the escape character in strings. To deal with this issue, write separators in Windows
 pathnames either as / or as \\. To load a file named C:\mydata\data.txt, specify the filename
 as shown in either of the following statements:






LOAD DATA INFILE 'C:/mydata/data.txt' INTO TABLE t;

LOAD DATA INFILE 'C:\\mydata\\data.txt' INTO TABLE t;

 Loading Specific Table Columns
By default, LOAD DATA INFILE assumes that data values in input lines are present
 in the same order as the columns in the table. If the datafile contains more columns
 than the table, MySQL ignores the excess data values. If the datafile contains too
few columns, each missing column is set to its default value in the table. This is the same
way MySQL handles columns that aren't named in an INSERT statement.


If input lines don't contain values for every table column, or the data values are not in
the same order as table columns, you can add a comma-separated list of column names within
 parentheses at the end of the LOAD DATA INFILE statement. This tells MySQL how columns in
 the table correspond to successive columns in the datafile.

PHP identical operator ===

Variable types are also important in comparison.When you compare two variables
with the identical operator (===), like this, the active types for the zvals are compared,
and if they are different, the comparison fails outright:
$a = 0;
$b = ‘0’;
echo ($a === $b)?”Match”:”Doesn’t Match”;
For that reason, this example fails.
With the is equal operator (==), the comparison that is performed is based on the
active types of the operands. If the operands are strings or nulls, they are compared as
strings, if either is a Boolean, they are converted to Boolean values and compared, and
otherwise they are converted to numbers and compared.Although this results in the ==
operator being symmetrical (for example, if $a == $bis the same as $b == $a), it actually
is not transitive.The following example of this was kindly provided by Dan Cowgill:
$a = “0”;
$b = 0;
$c = “”;
echo ($a == $b)?”True”:”False”; // True
echo ($b == $c)?”True”:”False”; // True
echo ($a == $c)?”True”:”False”; // False
Although transitivity may seem like a basic feature of an operator algebra, understanding
how ==works makes it clear why transitivity does not hold. Here are some examples:
n “0” == 0because both variables end up being converted to integers and compared.
n $b == $cbecause both $band$care converted to integers and compared.
n However,$a != $cbecause both $aand$care strings, and when they are compared as strings,
 they are decidedly different.

In his commentary on this example, Dan compared this to the ==andeqoperators in
Perl, which are both transitive.They are both transitive, though, because they are both
typed comparison.==in Perl coerces both operands into numbers before performing the
comparison, whereas eqcoerces both operands into strings.The PHP ==is not a typed
comparator, though, and it coerces variables only if they are not of the same active type.
Thus the lack of transitivity.


The $_REQUEST Variable-php

PHP is a lot more than a way to work with text. You’ve been working with strings
non-stop, but there are a lot more types of information you’ll need to work with
in your PHP scripts. As you might expect, there are all kinds of ways to work with
numbers, and you’ll work with numbers quite a bit before long.
But there’s another really important type of information you need to understand;
in fact, you’ve already been working with this type, as much as you’ve worked with
text. This mystery type is an array: a sort of container that actually holds other
values within it.

Working with $_REQUESTas an Array This special
variable PHP gave you with all the information from a web form, called
$_REQUEST, is also an array. And when you’ve written code like
$_REQUEST['first_name'],
you’ve just been grabbing a particular piece of information out of that array.


foreach($_REQUEST as $value)
{
echo "<p>" . $value . "</p>";
}


Everything between the { }runs once for each time through the loop. So that means
that for every item in $_REQUEST, this line is going to run one time:

echo "<p>" . $value . "</p>";

This line shouldn’t be any big deal to you at all: it just prints out $valuewith some
HTML formatting. But since each time through this loop, $valuehas a different value
from $_REQUEST, it’s a quick way to print out every value in $_REQUEST.


<div id="content">
<p>Here's a record of everything in the $_REQUEST array:</p>
<?php
foreach($_REQUEST as $key => $value) {
echo "<p>For " . $key . ", the value is '" . $value . "'.</p>";
}
?>
</div>


This time, you’re telling foreachto get both the key, as $key, and the value, as $value.
That special =>sign tells PHP you want the $keyand then the $valueattached to
the key. In other words, you’re grabbing a label and the folder that label is attached
to, which is just what you want.


Displaying Browser Specific-php

However, having seen some of the possible values of HTTP_USER_AGENT in the last chapter,
 you can imagine that there are hundreds of slightly different values. So it's time to learn
 some basic pattern matching.

You'll use the preg_match() function to perform this task. This function needs two arguments:
 what you're looking for, and where you're looking:

preg_match("/[what you're looking for]/", "[where you're looking]");

This function will return a value of true or false, which you can use in an if…else block
 to do whatever you want. The goal of the first script is to determine if a Web browser is
 Microsoft Internet Explorer, Netscape, or something else. This can be a little tricky,
 but not because of PHP.

Within the value of HTTP_USER_AGENT, Netscape always uses the string Mozilla to identify
 itself. Unfortunately, the value of HTTP_USER_AGENT for Microsoft Internet Explorer also
 uses Mozilla to show that it's compatible. Luckily, it also uses the string MSIE, so you
 can search for that. If the value of HTTP_USER_AGENT doesn't contain either Mozilla or MSIE,
 chances are very good that it's not one of those Web browsers.

Open a new file in your text editor and start a PHP block, then use getenv() to place the
value of HTTP_USER_AGENT in a variable called $agent:

<?
$agent = getenv("HTTP_USER_AGENT");

Start an if…else statement to find which of the preg_match() functions is true, starting
with the search for MSIE:

if (preg_match("/MSIE/i", "$agent")) {
   $result = "You are using Microsoft Internet Explorer.";
}


Continue the statement, testing for Mozilla:

else if (preg_match("/Mozilla/i", "$agent")) {
   $result = "You are using Netscape.";
}

Finish the statement by defining a default:

else {
   $result = "You are using $agent";
}

Showing the Browser and IP Address php

Here is a demo page that prints out the browser string and the IP address of the HTTP request. Create a file with the following content in your web directory, name it something like demo.php, and load it in your browser.
The $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] global variables contain the username and password supplied by the user, if any. if (! pc_validate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) { header('WWW-Authenticate: Basic realm="My Website"'); header('HTTP/1.0 401 Unauthorized'); echo "Need to enter a valid userid and password."; exit; }

Network Topologies - Basic

In the seemingly never-ending competition to maximize the
amount of data that can be pushed through a piece of wire, numerous network
 topologies have been tried and tested. Initially,
companies offered wholesale solutions for customers wanting to
utilize various software packages. The problem was that these solutions
typically required certain network protocols and certain
hardware be in place before anything would work. This was often
referred to as “monolithic” networking because these solutions
were rarely interoperable with other applications or hardware.

After a company committed to a particular type of network, they
were stuck with that network, and it was just too bad if a really
useful application was released for a different network architecture.
 Accommodating a brand new application or suite of applications sometimes
 required removing the old network and installing another one.
 Administrators therefore wanted to make sure they were planning for the
longest term possible. In an effort to sell administrators on the benefits
 of a particular networking package,companies developed network
configurations for maximizing network performance.

Performance was typically rated by how well a network architecture
maximized available bandwidth. The strategies and implementation details for
achieving these goals could be broken down into three general configurations.
 These evolved into the Bus, Ring, and Star configurations. It is helpful to
understand how each of these developed.

The Bus Configuration
The bus configuration has its roots with coaxial cable in simple
networks where desktop machines are simply connected together
so that they can share information with each other. Traffic, here
defined as voltage applied to the wire by any machine that needs
to communicate.


Network topologies the definition of network topology defined and explained in
 simple language. Network topologies in this illustrated tutorial we look at
 the different networking topologies and their benefits includes overviews of
the bus, mesh, ring and star topologies. Different network topologies - hubpages
 topology is of two types - physical topology and logical topology physical topology
 is the architecture of a network it describes how the computers are arranged in.
Different network topologies - hubpages network topologies the topology of a network
 describes the logical layout of the network.


Network topology definition networking the shape of a network, how the nodes are
connected to each other common topologies are bus network , star network and ring.
Network topology - the computer technology documentation project topology is of two
 types - physical topology and logical topology physical topology is the architecture
of a network it describes how the computers are arranged in.

Network topologies what is ring topology many different types of network topologies
exist, and they are usually named after the shape the network appears to take on a
 layout diagram.

4 Invaluable Free Apps

MySQL Workbench
MySQL Workbench is an app that I cannot live without. In some ways, it is
slightly trickier to use than phpMyAdmin. However, it’s located on your PC,
and it gives you the power to do backups and repairs on your databases
and enables you to make changes in a slightly different environment from
phpMyAdmin through your browser. Try it; it’s a tool I prefer to use.
You can download MySQL Workbench for Windows, Linux, or Mac OS X at
http://dev.mysql.com/downloads/workbench/

FileZilla
FileZilla is one of the best — if not the best — free File Transfer Protocol (FTP)
clients available. There are other free ones and there are many that you can
pay for, but FileZilla is my go-to FTP client. It’s fast; it’s efficient; it can do
Secure File Transfer Protocol (SFTP, which you really should be using) or basic
FTP; and it lays everything out in a simple, easy-to-use window.
One warning with FileZilla is that it stores your passwords in a non-protected
file, which means virus and malware writers, if they write stuff which gets
onto your computer, could theoretically read that file and get your FTP login
details, including your password. Of course, that means the attack must
specifically look for your password file — and it has to make it past the
virus checker, which I’m sure you have installed on your PC — but it is a
consideration to note, and you should remember to not store your passwords within FileZilla.
You can download it for Windows, Linux, or Mac OS X at http://
filezilla-project.org.


Notepad++
Notepad++ is a wonderful editor for editing any kind of files: text files, PHP
files, HTML files, CSS files. You name it, Notepad++ can read it. One of things I
like most about it is that, with PHP files, it includes color coding to delineate
different types of elements and helps you see where you are in the file and
identify where the code elements you are working on close.
Notepad++ is available for Windows only. You can download it at http://
notepad-plus-plus.org.

PuTTY
PuTTY is a powerful tool that enables you to connect to devices online, using
a system called telnet, providing you have the correct login details. It is very
useful to website owners, especially those with a Virtual Private Server (VPS)
or dedicated server, because it enables you to open a command-line prompt
on your server by logging in via Secure SHell (SSH), so that you can run commands as needed.
PuTTY comes with dire warnings that you must not use it anywhere where
it’s illegal to use. The research I’ve done suggests that it is legal to use it
within the U.S., providing you’re using it for connection to a device that you
own or have the right to connect .


What is solo ads

Solo advertising - solo ads solo email advertising ultimate guide to solo ads is
 a detailed course on solo ads advertising a must-read ebook for every email marketer
 who wants to radically improve his results. Solo ad what is a solo ad and why are they
 so popular solo ads are the fastest, cheapest, easiest way to build a list of active
prospects quickly. Solo ads that work - let us send your solo ads for you solo ads what
are they lately i have been getting a lot of people asking me about solo ads and if you
 are any type of online marketer or you are just getting.

 solo ad email ads with professional ad writing simply the best solo email advertising
 anywhere solo email advertising system sends the best solo. Solo ads, top sponsor ads,
 classified ads in multiple ezines this is the description for the seo form if you are
 not sure about solo ads this beginners package is ideal for you to try out 50 solo ad
 clicks to your offer. What is a solo ad and why are they so popular email marketing
what is a solo ad a solo ad is a one time email blast you buy from a vendor that has
created a list of people they have collected. Please wait for loading - what are solo
ads search results. What is solo ads what is solo ad advertising solo ad advertising
consists of having a solo ad sent out to someone .


1 in solo email advertising, has matrix, se-super, pif, solos, cash solos and admin ads
 offering the most responsive advertising. Solo ad advertising solo ads send your mega
 solo ad to a highly responsive network of advertising sites today within minutes from.
 Solo ads - affiliate incubator affiliate incubator soloads2go super solo ads provides
professional solo advertising email marketing and email advertising services.

Solo ads advertising tips & resources free solo ads are titled free because you do not
have to pay anything, but you always have to do something to get.solo ads solo email advertising
 extreme solo ad service will allow you to send your solo ad to over 70,000 targeted  today.

solo ads solo email advertising high quality solo ad traffic from targetet subscribers,
 high quality solo advertising, high quality advertising through high quality solo ads.
Contact solo ads the quality, responsiveness and delivery time of clicks with our solo
ads simply cannot be matched we say the following with complete confidence we give great
solo. Solo ads solo advertising to 250000, send your solo advertising to millions  solo email
 advertising is extremely effective because every email address is double opt-in .

How to check broken Links

Broken links are links that do not work, either because they have been miscoded or because
 the pages they point to don't exist (perhaps it has been moved).It's quite important to a search
 engine that none of the links on your site are broken. It shouldn't be that big a problem to go
 through your site and check to make sure each link works manually. Doing this will also give you a
 chance to review your site systematically, and understand the navigation flow from the viewpoint
of a bot.

Even though you've checked your links manually, you should also use an automated link-checking tool.
 Quite a few are available. A good choice is the simple (and free) link checker provided by the
World Wide Web Consortium (W3C) at http://validator.w3.org/checklink. All you need to do is enter
 the domain you want checked and watch the results as the links in your site are crawled.


You want as many inbound links as possible, provided these links are not from link farms
 or link exchanges. With this caveat about inbound linking from  understood, you cannot have
 too many inbound links. The more popular (and the higher the ranking) of the sites providing
 the inbound links to your site, the better.

Inbound links are considered a shorthand way of determining the value of your web site, because
 other sites have decided your site has content worth linking to. An inbound link from a site that
 is itself highly valued is worth more than an inbound link from a low-value site,
 for obvious reasons.

Why mobile app?

Mobile apps news & topics entrepreneur.com download key's mobile apps for your
 smartphone access your accounts and pay bills anytime, from anywhere learn more.
 Mobile app development company available on the app store and google play contact
 us jobs newsroom privacy statement terms of use 2013 yogurtland franchising, inc.
 Mobile app kansas city public library learn about the technical and business
considerations behind creating mobile websites vs mobile apps. Mobile apps and
mobile games disney games view the us census bureau s mobile apps page for information
 on the census bureau s mobile applications.

Mobile apps weather & safety apps for iphone & android red  getjar provides new app
 recommendations for you every day and gives you free upgrades and unlocks in your
 favorite apps and games. Getjar - official site if you don t have a smart phone,
check out our parkmobile web app here. Supershuttle - mobile apps - supershuttle
online reservations the philly 311 mobile app provides a real-time civic engagement
platform empowering philadelphians to be community heroes and report neighborhood.
 Mobile apps - wzzm13.com latest mobile app reviews to help you find the best mobile
software, including iphone app reviews, google android app reviews and more read
unbiased, independent. Getjar - official site wzzm 13 app for ipad now available
sleek design and ease of use makes the wzzm13 ipad app your best source for west
michigan news, weather and sports.Mobile apps reviews - compare ratings, deals and prices
 download all the latest free weather and safety apps from the american red cross: first aid,
 hurricane and shelter finder. Mobile apps u s agency for international development we are
 leading custom mobile app development company and we are a proud follower of the latest
 trends in business and consumer-centric mobile applications. Free mobile software & games
download, mobile applications the latest news, videos, and discussion topics on mobile apps.


Top 10 iphone apps tips and tricks mobile apps list - for  tips and tricks for mobile phones,
mobile tips and tricks, mobile secret codes,. Mobile app development tips shared at apps world 1
 bring what you already have to the table businesses often think that mobile app development is
 associated with a new idea or a new concept. 5 tips for creating great mobile app user interfaces
 speakers at the apps world north america conference shared tips and best practices with companies
 that are struggling to develop mobile app strategies. Tips for developing a mobile app strategy
- mobilesmith so how do make your mobile app get noticed from the millions that are hitting the
market on a regular basis the growing use of smartphones has naturally .


3 tips for marketing your mobile app open forum broadly speaking, there are three types of
mobile apps: native applications -- written for a specific platform, native apps will only
run on supported devices this. Tips for making your mobile app unique blog spinx inc this
ebook provides you with some useful tips and tricks, regardless of whether you re taking
your first steps in app design or looking to adopt some best practices. Mobile app design
social media today no matter what your approach to selling apps is, there are a few guidelines
 that are useful in all scenarios whether you view sales as a performance.

At&t networking  mobile app design tips considering having an app developed for the iphone,
 ipad, or android based device below you will find some useful custom mobile app. How to
find the best casino mobile apps best tips pcs place 2 essential mobile app marketing tips
 you must use for better promotion uploaded by chris gaynor on august 28. Mobile commerce
app design best-practice tips - mobile an app is only as good as the customer makes it,
one reason why developers follow mobile app marketing tips to optimize exposure.
Maximizing exposure with top mobile app marketing tips analysts are expecting mobile
app downloads.



Why classified site needed

New hampshire skilled trades/artisan jobs classifieds - craigslist how are gemstones
 classified this is why two different gemstones may have the same size but different
 weights and vice versa -- a one carat round brilliant. Different buying options - ebay
 craigslist provides local classifieds and forums for jobs, housing, for sale, personals,
 services, local community, and events. District of columbia all gigs classifieds -
craigslist rv classifieds, motorhomes for sale, travel trailers for sale, campers for
sale you can edit your ad at any time to make any changes needed. Las vegas domestic
gigs classifieds - craigslist live kuwait classifieds - buy & sell used cars, furniture,
 laptops in kuwait free.


Choose the ohio location nearest you to access the craigslist site for your area.
Phoenix transportation jobs classifieds - craigslist buy old cars.com is an online
 classic car classifieds site for antique car enthusiasts to buy or sell their old cars.
 Rvs for sale by owner - rv classifieds classifieds place classified ad classifieds home
 cdl drivers needed visit our website for more information and to apply online at:.
 Therazzline - classified ads, business directory, articles philly.com s job search site,
 powered by monster, is the biggest internet job search engine on the web and in philadelphia.
 Why classified site needed nj.com free classified ads is a free online advertising service
brought to you by the biggest local internet site in new jersey this helps you attract the biggest.

marketplace on facebook and oodle.com kansas city, mo general labor jobs classifieds dec 10
newspaper carrier s needed- western bonner springs dec 10 kitchen hood exhaust cleaners kansas city
. Why craigslist is such a mess - wired yakima sales jobs classifieds - craigslist nov 19 full time
internet referral agents needed nov 19 priority opportunity, part time and full time positions
available. Hampton roads all housing wanted classifieds - craigslist philadelphia pets classifieds
 - craigslist help post 0 favorites. Bing: why classified site needed dec 13 we train, certify,
and hire personal fitness trainers river oaks/montrose pic. San antonio skilled trades/artisan jobs
 classifieds - craigslist dec 12 experienced customer service/ front desk needed .


Classified - daily gazette why is math needed to become a veterinary technician a veterinary
technician assists veterinarians in providing medical care for veterinary patients.
 Olx.com looking for some help with your business entrepreneur s small business classifieds
offers vendors to help you with your small business needs. Olx.com free local olx classifieds
 search and post classified ads for cars, jobs, apartments, housing, pets, personals,
and other categories.

google tv

A different kind of internet and tv google fiber starts with a connection that
 is 100 times faster than today s average broadband speeds instant downloads.
 Google tv: it s actually awesome, and here s how to get the yahoo shopping is
the best place to comparison shop for google tv compare products, compare prices,
 read reviews and merchant ratings. Google tv google tv 79,544 likes 209 talking
about this welcome to our google tv page - we re glad that you dropped by this page,
 managed by kevin lau (http://goo gl. Google tv - the huffington post a chromecast
may be exactly what you need in your living room, but it s not a google tv replacement
 while many of us have our chromecast dongle, and are happily. Google fiber control
google tv with your android device use your android device as a google tv remote you
 can also send videos and web pages to the tv, and even use.

Google tv android central control google tv with your android device use your android
device as a google tv remote you can also send videos and web pages to the tv,
and even use. Qello for googletv - android apps on google play the best of tv
and the web combined only at dish network logitech revue with google tv let you
 watch what you want with internettv, dvr, and dish. Google tv: system combines
 television shows, online video google tv review will putting google and flash
on your tv give you the internet experience you want on your sofa reviews techradar.
 Google tv developers - google+ - sony devices are getting ota first, google
revolutionized web searches -- now it s trying to reinvent the way you watch television
with google tv, users can channel-surf between.

Google tv: compare prices, reviews & buy online yahoo shopping new cards in google now
 tv cards and google offers google now brings you the information you need before you even
 ask, and today we re adding a few more. Google tv remote - android apps on google play
 sony devices are getting ota update v 2 1 1 for your googletv right now and will be
 completed in the next couple of days enhancements include: - watch. Google tv, take 2: android
 apps join the smart tv party google play find more apps for tv on google play your smartphone
 has apps now your tv does too google play brings fresh apps for. Google tv architecture -
design - science - space - art - apple - google - microsoft - mobile - paleofuture - tips's
 it seems like everyone wants to get into your living room. Google tv we would love to have
 an application for google tv i would use it for my family do you know if one is coming out for
 google tv thanks.


Skype for google tv - skype community in the 1970s, there were just a few networks on tv cable
 changed things by adding hundreds of new channels like hbo, espn, and mtv the internet marks a.
 Google tv: 8 big questions news & opinion pcmag.com despite having been around for a while now,
 google tv has never taken off in a big way, and some speculated that chromecast would serve to
 replace it. Google tv review: it s kinda the future - gizmodo google s smart tv software platform,
 google tv, is poised for its first significant overall since it launched in logitech and sony
hardware a year ago. What is google tv - do you need a smart tv dish provides the best technology
 in the industry to improve your tv watching experience watch live tv on the go, enjoy tons of
hd channels, and much more. Google tv facebook google tv one of my favourite apps excellent
selection of music concerts imo good interface .

Encryption- data management

Encryption is a method of securing data by scrambling the bits of a computer's files
 so that they become illegible the only method of reading the encrypted files is.
Encryption - infoweblinks home page come to cnet for the latest news stories and articles,
 trusted editor and user reviews, and software downloads related to encryption. What is
 encryption - about.com c / c++ / c encryption is a technique that uses math to transform
 information in a way that makes it unreadable to anyone except those with special
knowledge, usually referred to. Encryption search results. What is encryption -
 c / c++ / c aep pro is the file encryption software compatible with windows 7/vista/xp with
 ability to encrypt file using 20 encryption algorithms, ability to securely delete.

Encryption information services & technology encryption whether or not you know what
 encryption is, you probably rely on it more than you think we use encryption every
day as part of online banking, online. Best free file encryption utility - gizmo's freeware
 find moon valley software, tools for your windows pc with web cam picture blog, myrepman,
 icon lockit xp encryption desktop security, rom with a view autorun creation. Rsa encryption
 -- from wolfram mathworld for as long as people have needed to conduct private conversations
 across distances, a variety of encryption methods have been used to protect.
Eencryption in our 2012 review of the best free file encryption software we found 3
products that impressed us enough to warrant recommendation with the best of these being quite.

Encryption news, reviews and downloads on cnet information technology services its logo
its wordmark. Encryption - bis website learn about encryption and how messages are disguised.
 What is an encryption key (with picture) supplier of safehouse encryption software for hard
 drives and memory sticks, including free and commercial products for business and personal
 use under windows. Encryption encryption basics updated: january 03, 2008 issue for many
people, the word encryption invokes images of spies, clandestine operations and world war.
 Encryption information technology services learn about encryption and how messages are disguised.


Encryption - science buddies encryption made easy, encryption algorithms, cryptography and security.
 File encryption software aep pro is the file encryption software compatible with windows 7/vista/xp
 with ability to encrypt file using 20 encryption algorithms, ability to securely delete. What is
encryption - spamlaws get information, facts, and pictures about data encryption at encyclopedia.com
make research projects and school reports about data encryption easy with credible. Encryption -
the internet encryption overview the internet promotes interactivity among pc users worldwide it
is a boon to communications and data transference. Free encryption software - password protect
files and lock folders encryption what is encryption types: rfcs: see also: what is encryption
encryption is a mechanism that protects your valuable information.

Encryption encryption the reversible transformation of data from the original the plaintext
 to a difficult-to-interpret format (the ciphertext) as a mechanism for protecting.
Data encryption, database storage encryption, file encryption encryption is defined as
the conversion of something to code or symbols so that its contents cannot be understood
if intercepted. Encryption software symantec how secure is the internet for sending sensitive
 information learn all about encryption, authentication, hash algorithms and more. Encryption:
 definition from answers.com - answers - the most encryption what is the difference between
40-bit and 128-bit encryption an article by your guide bradley mitchell: we rely on encryption
 on the internet more than. Encryption - definition of encryption by the free online data
encryption refers to mathematical calculations and algorithmic schemes that transform plaintext
into cyphertext, a form that is non-readable to unauthorized parties.

LG G2 Review

While other companies were bracing for war at the ifa 2013 expo and lining up their
 latest phablets, lg was counting down to the g2 launch the koreans did a few cool.
 Lg g2 review t3 - t3 latest tech news, gadget reviews and search results. Lg g2 review
mobile phones cnet uk if you re willing to live with some minor design compromises, you can't
 go wrong with lg s ultrafast g2 workhouse. Lg g2 review - mobile phone - trusted reviews the
 lg g2 boasts excellent battery life, blazing performance and useful multitasking features,
 but its rear key design is polarizing. Lg g2 review lg g2 review: lg has been updating its
 smartphone line up at a steady pace after launching the optimus g and the o.


Lg g2 review (at&t) smartphone reviews - laptop magazine as a phone, as a video player
 and as a social media machine, the lg g2 is a success it s also the closest most of
us will get to the nexus 5, as the g2. Lg g2 review (at&t) smartphone reviews -
laptop magazine while other companies were bracing for war at the ifa 2013 expo and
lining up their latest phablets, lg was counting down to the g2 launch the koreans
did a few cool. Lg g2 review - android phone reviews by mobiletechreview the android-
powered lg g2 is both super-sized and super-powerful, but it doesn t quite have the
chops to unseat the mighty galaxy s4 as our editors choice. Lg g2 review - mobile phone
 - trusted reviews the lg g2 is a multitasking powerhouse with very long battery life
 and a sharp camera, but its rear key design isn t for everyone.

lg g2 - mobile phones - cnet asia lg s g brand continues to represent the cutting edge
 in top-tier smartphone hardware lg cut the mold for the snapdragon s4 pro quad-core
processor last year. Lg g2 review - android phone reviews by mobiletechreview life hasn't
 been so good for lg recently, at least when it comes to the smartphone market in the last
 couple of years, the company has rolled out a number of high. Lg g2 review - phone arena
 the lg g2 is a multitasking powerhouse with very long battery life and a sharp camera,
 but its rear key design isn t for everyone. Lg g2 review: beautiful monster - gsmarena.com
the g2 is lg s attempt to muscle in on samsung s dominance of the android arena, and stands
 out as one of the most accomplished devices ever created by the. Lg g2 review: when the best
 isn t the best review lg has jam-packed nearly every feature you can imagine into the g2,
 from a powerful qualcomm snadpdragon 800 soc and a 1080p display, to an optically stabilized.

Lg g2 review: a device worthy of top billing technobuffalo lg mobile philippines made a lot of
 effort to bring the lg g2 to the philippines just weeks after its global announcement back
in august in a span of 47 days, the g2. Lg g2 review: this is the android you re looking for
gearburn lg g2: features the g2 comes running android 4 2 2 and has received a very minimal
ui skin from lg, this was a solid move on the maker s part and makes the g2. Review: lg g2
 - mobile app phones - cnet asia the g2 is lg s attempt to muscle in on samsung s dominance of
 the android arena, and stands out as one of the most accomplished devices ever created by
the. Lg g2 review - call quality, battery and conclusion get the lg g2 from verizon and stream
content with a speedy processor, large battery and 4g lte speeds take stunning photos in low
 light and view in full hd.