Networking Functions-PHP

When using the PHP binaries for Windows that are available from http://php.net/, the getprotobyname(), getprotobynumber(), getservbyport(), and getservbyname() may not function as anticipated under Windows 2000.

DNS resource records:
  • checkdnsrr()
  • getmxrr()
Domain name/IP address lookups and conversions:
  • gethostbyaddr()
  • gethostbyname()
  • gethostbynamel()
  • ip2long()
  • long2ip()
Internet protocol and service information:
  • getprotobynumber()
  • getservbyname()
  • getprotobyname()
  • getservbyport()
PHP 3 debugger (warning: very broken!):
  • debugger_off()
  • debugger_on()
Sockets:
  • fsockopen()
  • pfsockopen()
  • socket_get_status()
  • socket_set_blocking()
  • socket_set_timeout()

    gethostbyaddr() 
    gethostbyname() 
    gethostbynamel() 
    getmxrr() 
    Example:
    Check whether a given domain name has an MX resource record
    <?php 
    $url = "http://www.php.net/"; 
    $component = parse_url ($url); 
    checkdnsrr ($component['host'], 'MX') 
        or die ('No MX record exists for <i>$component[host]</i>. 
            Did you enter the URL correctly?'); 
    echo "MX record found for <i>$component[host]</i>"; 
    ?> 

    fsockopen

    mixed fsockopen(string host, int port, [reference error_number], 
     [reference error_string], [double timeout]) 
    host
    Hostname or IP address
    port
    Port number
    error_number
    Reference to a variable that will store the system-level error number if the function fails
    error_string
    Reference to a variable that will store the system-level error message if the function fails
    timeout
    Number of seconds before the connect system call times out
    Opens a connection to a socket.
    Returns:
    File pointer identifying the open socket; FALSE on failure
    Description:
    fsockopen() attempts to open a network socket connection to the specified host and port. TCP connections are assumed by default, but UDP connections can be specified by placing udp:// at the start of the host .

    There are three optional arguments: error_number , error_string , and timeout . Both the error_number and error_string arguments must be passed as references, as in &$error_number and &$error_string. If an error occurs, these variables will contain an error code and a message. If the error number is 0, this is usually due to a problem that occurs before the socket initializes, such as an incorrect hostname.

    The timeout argument should contain the maximum number of seconds to wait for a connection before timing out.

open a socket

<?php 
$host = 'www.abcxyz.com'; 
$port = 80; 

$fp = fsockopen($host, $port, &$err_no, &$err_msg, 10) 
    or die ("Could not open a socket connection to host 
         <i>$host</i> on port <i>$port</i>. 
         The error message returned was '<i>$err_msg</i>'."); 
echo "A socket connection to host <i>$host</i> on port 
   <i>$port</i> was successfully opened." 
?> 

PHP-max_execution_time

php.ini Directives Related to the Connection-Handling Functions

The following configuration directives can be used to control the behavior of the connection-handling functions.
Directive Name
Value Type
Description
ignore_user_abort
bool (on/off)
If this setting is enabled, PHP continues running the script even after the user aborts the script or disconnects.
max_execution_time
integer
The maximum amount of time that a script can run before execution is halted.

connection_timeout

connection_timeout() is broken and has been removed from PHP 4 (as of version 4.0.5). Do not use this function—use connection_status() instead.

ignore_user_abort() allows developers to control whether a remote client can abort the running of a script. If the user_abort_setting argument is set to FALSE, client aborts (and some network errors) will cause the script to stop running. If user_abort_setting is set to TRUE, the script continues running until an error occurs, the script finishes execution, or the script times out.


To check whether script execution has been aborted:
connection_aborted() 
To set ignore_user_abort globally:
ignore_user_abort ini directive 


 


How to find Broken Links of your website

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.
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.


Whst is Digital Marketing?

SEO, PPC, Digital Marketing, Social Media Company in Kolkata, India. We expertise in Digital Marketing and Search Engine Optimization SEO won Topseo's ranking and multiple categories website SEO clients, Both in Kolkata,. WebCEO Online is a cloud-based SEO solution for website owners, digital marketing agencies and in-house SEO teams.

Pay-Per-Click -PPC
The pricing structure used by some online channels to charge an advertiser each time a user
clicks on the advertiser's ad. The amount is usually set by the advertiser, not by the channel.
Also called cost-per-click

An ad's position is based on its Ad Rank, which is determined by your keyword or Ad
Group's maximum cost-per-click  times the matched keyword's Quality Score. For the
top positions above Google search results, however, we use your ad's actual CPC to
determine its position.

The number of conversions divided by the number of ad clicks. Note that the conversion
rate should not be greater than 100%. Conversions are only counted on Google and some of
our Google Network partners. The conversion rate is adjusted to reflect only the ad clicks on
which Google can track conversions.

Aside from being the home of the popular Google-Dance tool, Seo Chat also contains a library of articles on topics such as Search Engine Keywords, Directories, Link Development, Marketing, Optimization, Promotion, News, Spiders, Submission, and more. Two major directories, the Yahoo Directory and. To avoid undesirable content in the search indexes, webmasters can instruct spiders not to crawl certain files or directories through the standard robots txt file in the root directory of the domain. Google , Bing and Yahoo and directories.

The goal of any business, including your affiliate business, is to maximize
profits.Profit is simply your income minus your expenses.
As an affiliate, there are exactly two ways to increase your income (i.e., the
amount of money your business makes)...
1) Refermore visitors to the merchants that you represent.
2) Increasethe Conversion Rate (i.e., the percent of visitors that you refer to
your merchant  visitors who deliver the response for which the merchant
pays,whether that’s a sale, or a lead, etc.
Simple formula, right? If you refer 100 visitors per day to a merchant and 1%
buy, you get paid for that one purchase. But if you send 1,000 visitors per day
and 3% buy, you get paid for 30 purchases.
Yes, thirty times more! So it’s pretty clear how to maximize affiliate income.

Maximize targeted traffic to your merchants,spending only dollars and time
that maximize profits.
Maximize Conversion Rates. Do things right.

Seo fire-Web Analytics

Web Analytics

Analytics software can provide you with a rich array of valuable data about what is taking place
on the site. It can answer questions such as:
• How many unique visitors did you receive yesterday?
• Is traffic trending up or down?
• What are the most popular search terms with which people find you?
• What are the most popular pages on your site?

Why Google gives priority to PPC not SEO? what is the difference between dofollow and nofollow. Is PageRank Important? - an example of how SEO information tends to vary in quality, with some cool algorithmic information from top Google search engineers.

Determining Top Competitors

Understanding the competition should be a key component of planning your SEO. The first
step is to understand who your competitors in the search results really are. It can often be small
players who give you a run for your money. For example, consider the previously mentioned
credit card search in Google; Visa, Master Card, American Express, and Discover Card all fail
to reach the #1 position in the Google results.

SEO targeting

What keywords are they targeting? You can determine this by looking at the page titles
(up in the blue bar at the top of your web browser, which also appears in the search results
listings) across their home page and product category pages, then by looking at their meta
keywords tag (right-click, select View Source, and then scour the HTML source for the list
of keywords that follow the bit of HTML that looks something like the following:

<meta name="keywords" content="keyword1, keyword2, …">

• Who’s linking to their home page, or to their top-selling product pages and category pages?
A link popularity checker can be quite helpful in analyzing this. Amazon.com has been
especially successful in achieving deep links into its millions of products.


Affect SEO

• Content areas/features/options added to the site this could be anything from a new blog
to a new categorization system.
• Changing the domain of your site. This can have a significant impact, and you should
document when the switchover was made.
• Modifications to URL structures. Changes to URLs on your site will likely impact your
rankings, so record any and all changes.
• Implementing a new CMS. This is a big one, with a very big impact. If you must change
your CMS, make sure you do a thorough analysis of the SEO shortcomings of the new
CMS versus the old one, and make sure you track the timing and the impact.
• New partnerships that either send links or require them meaning your site is earning new
links or linking out to new places.
• Changes to navigation/menu systems (moving links around on pages, creating new link
systems, etc.
• Any redirects, either to or from the site.

 Email marketing efforts

Free information source for internet marketing needs, email marketing, and other online activities. Email Marketing A thoughtful email campaign will keep you connected to your client base, increase brand loyalty, and lead to repeat purchases, making it one of the best performing marketing channels available. Our experts can either consult on your email marketing efforts.

keyword relevancy

SEO - from discovery of the terms and phrases keywords that generate traffic, to making a site search engine friendly, to building the links and marketing the unique value of the site/organization's offerings.
your website's keyword relevancy, build website authority, boost your inbound link profile, and engage potential customers.

Links

Links in submission-required forms
Search spiders will not attempt to “submit” forms, and thus, any content or links that are
accessible only via a form are invisible to the engines. This even applies to simple forms
such as user logins, search boxes, or some types of pull-down lists.
Links in nonparsable JavaScript
If you use JavaScript for links, you may find that search engines either do not crawl or
give very little weight to the links embedded within them.
Links in Flash, Java, or other plug-ins
Links embedded inside Java and plug-ins are invisible to the engines. In theory, the search
engines are making progress in detecting links within Flash, but don’t rely too heavily on
this.
Links in PowerPoint and PDF files
PowerPoint and PDF files are no different from Flash, Java, and plug-ins. Search engines
sometimes report links seen in PowerPoint files or PDFs, but how much they count for is
not easily known.
Links pointing to pages blocked by the meta Robotstag, rel="NoFollow", or robots.txt
The robots.txtfile provides a very simple means for preventing web spiders from crawling
pages on your site. Use of the NoFollowattribute on a link, or placement of the meta
Robotstag on the page containing the link,

Make a PHP session code

 Make a PHP session code

session_start

int session_start(void) 
Initializes a session.
Returns:
Always returns TRUE
Description:
Initializes a session. If a session ID is sent as a GET or in a cookie and is a valid session identifier, the session is resumed.
Version:
Existing since version 4.0
Example:
Start a session
session_start(); 
if (!$counter) session_register("counter"); 
echo $counter; 
$counter++; 



<?php
// include URL utils library
require_once ‘include/url_utils.inc.php’;
// load configuration script
require_once ‘include/config.inc.php’;
// start PHP session
session_start();
// redirect affiliate links
if (isset($_REQUEST[‘aff_id’]))
{
// save the affiliate ID
$_SESSION[‘aff_id’] = $_REQUEST[‘aff_id’];
// obtain the URL with no affiliate ID
$clean_url = SITE_DOMAIN . remove_query_param($_SERVER[‘REQUEST_URI’], ‘aff_id’);
// 301 redirect to the new URL
header(‘HTTP/1.1 301 Moved Permanently’);
header(‘Location: ‘ . $clean_url);
}
// display affiliate details
echo ‘You got here through affiliate: ‘;
if (!isset($_SESSION[‘aff_id’]))
{
echo ‘(no affiliate)‘;
}
else
{
echo $_SESSION[‘aff_id’];
}
?>


session_set_save_handler

bool session_set_save_handler(string open, string close, string read, 
string write, string destroy, string gc) 
open
Session init function
close
Session shutdown function
read
Session read function
write
Session write function
destroy
Destroy session function
gc
Garbage collection function
Sets handlers for custom session functions.
Returns:
TRUE on success; FALSE on error
Description:
This function takes six arguments that describe the functions used when creating your own session-handling functions. Each function can have any name, but the names must be passed in the correct order. In addition, each function must return the correct information. Using this function, it's possible to write any session handler that you want, including those that store their information in a database, text files, DBM files, or shared memory.
bool open(string save_path, string session_name )
Executed when a session is initialized; can be used for various functions such as initializing variables. The save path and session name can come from the PHP initialization file or via the session_save_path() and session_name() functions. Should return TRUE on success, FALSE on error.
bool close()
Executed on shutdown of a session. Can be used to free memory or to destroy variables. Should return TRUE on success, FALSE on error.
mixed read(string session_ID)
Called whenever a session is started. If called with a session ID, the data associated with that session ID must be read and returned as a serialized string. If no session ID is passed, an empty string is returned. Should return FALSE on error.
bool write(string session_ID , string value )
Updates or adds new session data. The data to be written must be serialized. Should return TRUE on success, FALSE on error.
bool destroy(string session_ID )
Removes any session data from the data store. Must return TRUE on success, FALSE on error.
bool gc(string max_lifetime )
Called at session startup. Designed to remove any sessions with a lifetime greater than the maximum. Should return TRUE on success, FALSE on failure.
Version:
Existing since version 4.0
Example:
Create new session handler
session_set_save_handler("user_open","user_close","user_read","user_write", 
"user_destroy","user_gc") 

How to Facebook Privacy info set

With more than 1 billion users, Facebook is the world’s largest social network.
 Founder Mark Zuckerberg started Facebook in 2004.
Facebook is a social utility that connects people with friends and others who work,
 study and live around them.
Get the information you need to control your sharing on Facebook. Basics.
 Learn the basics about privacy on Facebook.

Facebook's privacy settings are extremely detailed, giving you the ability
 to fine-tune the privacy aspects of almost every little part of your Facebook.

Facebook has overhauled its much criticized privacy settings and, as a result,
users can no longer implement a Limited Profile to block friends and contacts.

Safety is a conversation and a responsibility we all share. Get to know how
Facebook approaches safety.

To find your settings, click from your Facebook homepage and select Settings.

Give people control. Obtain consent from people before publishing content on their
 behalf. Use publishing permissions to help people share on Facebook.

Facebook financial and business news, updates, and information.
Facebook wants to replace the Internet. Fine. Just don't use it to send private messages.
 Private messages are insecure and impractical.

Goal-Line Technology-World Cup

World Cup 2014 goalline technology gets a test-run

New goalline technology to assist referees at the 2014 World Cup
 is given a test run at a stadium in Brazil.

2014 FIFA World Cup Brazil | Fixtures, Schedule and All Latest News of
 FIFA World Cup 2014. A long desired FIFA World Cup 2014 will be
held in Brazil from 12 June.


FIFA.com brings you all the latest results and upcoming fixtures on the road to Brazil.

The FIFA World Cup, often simply the World Cup, is an international
 association football competition contested by the senior men's national teams .

An event the size of the 2014 FIFA World Cup is sure to bring with it a lot of scams.
 From a scammer’s perspective it just makes sense.

How to Responsive web design

Mobile Websites & Responsive Web Design from Go-Mobile

Mobile Websites, Convert your existing website into a mobile device friendly
 format for your visitors & customers in just a few minutes.
http://go-mobile.com

Responsive Web Design is a term coined by Ethan Marcotte that articulates how to adapt a website’s layout for multiple screen resolutions.

Choose between responsive design or a native mobile app is difficult
since both options present advantages and disadvantages for
 a cash-strapped company.


Responsive web design gives web creators some tools for making layouts
 that respond to any screen size. This article uses fluid grids,
flexible images and media.

Responsive Web Design RWD Over the last few years the devices used
 to access web applications have grown like anything. 

FluidApp is a responsive, mobile app website HTML template for iPhone,
iPad, Android and more. Coded using the latest HTML5 and CSS3 standards,
 FluidApp features are a lots.

ipod touch-the magic

iPod touch
is ultrathin and colorful, plays music and video, rules games, runs apps,
 makes video calls, takes amazing photos, and shoots HD video.

Learn about iPod, Apple TV, and more. Download iTunes for free and purchase
 iTunes Gift Cards. Check out the most popular TV shows, movies, and music.
http://www.apple.com/ipod

iPod touch from the Apple Online Store and get free personal engraving.
 Choose from 32GB and 64GB models.

El iPod Touch es un reproductor multimedia , PDA , videoconsola portátily
 plataforma móvil Wi-Fi diseñado y distribuido por Apple Inc .

The iPod is a line of portable media players designed and marketed by Apple Inc.
The first line was released on October 23, 2001, about 8½ months after iTunes.

The iPod touch is a beautiful device, but unfortunately Apple restricted a
 lot of it's potential by locking the firmware.