YouTube-business

YouTube Multimedia Marketing business

When it comes to web video, there’s one really big dog that should
 be the centerpiece of your marketing plans. I’m talking about YouTube
www.youtube.com, the Internet’s largest video sharing community.
If you’ve never heard of YouTube, you should probably be fired from
 your day job. More likely you’re a fan of the site and use it to watch
 all sorts of interesting videos. That puts you in good company.

It’s hard to believe, but as of this writing, YouTube has only been around for
five years. Before YouTube, there really wasn’t a central place on the Web to
upload or view videos.
The whole thing got started by three former employees of PayPal, who had a
little cash in their pockets and the suspicion that there might be a need for a
service that facilitated the process of uploading, watching, and sharing videos.

Anyone, individual or business, can upload videos to YouTube.
These can behome movies, video blogs, old television
programs as long as copyright isn’t an issue, commercials,
even independent films. Videos can be up to 15 minutes in
 length, although most are much shorter.

YouTube proved immensely popular from virtually the first day in business.
Site traffic that first month was 3 million visitors, which is pretty good for a
startup. The number of visitors tripled by the third month February, tripled
again by July to 30 million visitors, and reached 38 million visitors by the
end of the site’s first year in business. That made YouTube one of the top 10
sites on the Web, period—and one of the fastest-growing websites in history.

If a viewer likes a video, he can easily share it with others; this is how a video
goes viral, by being passed around as a favorite. Viewers can post YouTube
videos to Facebook or MySpace, send links to videos via email, even embed
videos in their blogs or web pages. All the sharing mechanisms are right there
on the video viewing page, just below the video itself.

YouTube represents an essentially free advertising channel. The site doesn’t
charge producers to store their videos or to serve up the bandwidth necessary
to view them. It also doesn’t charge viewers anything to watch those videos.

Other YouTube videos are uploaded by businesses. These videos attempt to
promote a company, a brand, or a product. Some of these videos are blatant
commercials including existing commercials repurposed to the YouTube site,
some offer in-depth prepurchase information about a given product or service,
some offer post-purchase information or support, and some use other
approaches to gain viewers—and prospective customers

The first type of video you can produce is an informative video—that is, a
video that imparts information of some sort. This most often is the YouTube
equivalent of a newscast, with you (or your spokesperson) acting as reporter
or anchorman. Alternately, an informative video may function as a video
brochure, presenting in-depth information about you or your products.

Huawei Ascend Mate 7-passed

Huawei Ascend Mate 7-passed

Huawei's upcoming phablet, the Huawei Ascend Mate 7, has passed
 through TENAA and left a cache of specifications. The Mate 7 is
 the successor to the Mate2 and has a 6" screen so where did the 7
come from. The screen may be 6" big - 0.1" smaller than the previous
models but with 1080p resolution instead of 720p. The device
measures 157 x 81 x 7.9mm, so it's shorter, narrower and thinner
than its predecessor. It's lighter too, tipping the scales at 185g.
That's impressive considering that Huawei has replaced the plastic
back of the Mate2 with an aluminum plate, which makes the
Ascend Mate 7 look like the HTC One Max. The fingerprint
sensor beneath the camera makes the similarity even greater.
Huawei Ascend Mate 7 Anyway, the Mate 7 will leave the
mid-range chipsets of its predecessors in favor of the HiSilicon
Kirin 920.

 It has an octa-core big.LITTLE processor with four Cortex-A7
 and four Cortex-A15 cores plus 2GB of RAM 3GB option.
The phablet runs Android 4.4.2 KitKat will likely feature the
latest Emotion UI. The main camera is a 13MP shooter with a
single-LED flash and there's a 5MP selfie camera. The main
camera records 1080p video. There's 16GB of built-in storage
and a microSD card slot to add up to 128GB more. The Huawei
Ascend Mate 7 will be available in Black, White and Gold. TENAA
 certified two versions though both seem aimed at Chinese carriers.

start making money with AdSense-AdSense Fundamentals

AdSense Fundamentals


• Apply and get accepted by Google’s AdSense program
• File an IRS form W-9 (or other appropriate tax form) with Google
• Generate AdSense for Content ad and link unit code for your site
• Place the code in your pages
• If you have a mobile site, add AdSense for Mobile units to the mobile site
• Add AdSense search boxes to your site
• Create a custom search results page that echoes the look and feel of your site
• Create custom channels to track your ads and to offer targeted ad placements
• Create custom palettes to complement your web designs
• Add AdSense for Feeds to your syndication feeds
• Aggregate  your  feeds  from  a  single  source  such  as  a  WordPress
 blog  using FeedBurner
• Add any parked domains you have to the AdSense for
 Domains program
• Add video units to sites with appropriate content

Google Adsence Tips

The most important statistic for you to pay attention to is the CTR,
 or click-through rate. CTR measures the percentage of times visitors
 click, and can be broken down on the basis of what is being clicked
 into Page CTR -page percentage click-through rate,
Ad Unit CTR-ad unit percentage click-through rate, and Ad CTR -the
 percentage of times an individual ad is clicked. Page CTR tells you how
 effective your pages are as hosts for advertising, and Ad and Ad Unit
 CTR tell you how well specific ads and ad configurations work.

AdSense Impressions
An ad impressionis recorded each time an AdSense ad unit is displayed.
 A  page impressionis recorded each time a web page containing an
AdSense ad unit is displayed. A single display of a web page containing
 three ad units would produce one page impression and three ad impressions.

AdSense Clicks
A visitor’s click on an ad on a publisher’s page. Public service ad clicks
 are not included in this statistic.

download a file by php code-PHP download files code

Basic example for download a  file by php

<?php
$file="http://testexample.com/your_test_file.jpg"; // path to your file
 header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Content-Length: ' . filesize($file));
readfile($file); exit;
?>

download a file by php code

OR

<?php
header("Content-Transfer-Encoding: Binary");
        header("Content-length: ".filesize($dest_file_path));
        header('Content-Type: text/xml');
        header('Content-Disposition: attachment; filename="'.$dest_file_name.'"');
        readfile($dest_file_path);
?>

Exynos 5433-powered-Samsung Galaxy Note 4

The Samsung N910C is powered by a Exynos 5433 not to be
 confused with the Exynos 5430 found in the Galaxy Alpha,
while the N910S is based on Snapdragon 805. The new Exynos
 chipset moves to 64-bit processing with four Cortex-A57 cores
 and four Cortex-A53. Those are the successors to the 32-bit
A15 and A7 respectively but implement the ARMv8-A instructions
 set same as Apple's Cyclone cores. The Snapdragon 805 uses
32-bit Krait 450 cores. The chipset also brings a new generation
 of GPU, the Mali-T760, the third generation of the architecture
behind the Mali-T628 that powers Galaxy Alpha's chipset. The
Qualcomm chipset brings a next-gen GPU as well, Adreno 420.
 The Galaxy Note 4 will have 3GB of RAM in both its Exynos
and Snapdragon versions.  It helps that it has faster access to
 RAM too. The new Mali-T760 has an edge over the new
Adreno 420 at the QHD resolution of the Galaxy Note 4 screen.
 We added the score to our own charts and the new Samsung-made
 chipset certainly seems impressive. It offers a small improvement
over the 5430 but the thing to keep in mind here is that Android
 4.4 isn't optimized for the new instruction set used in the Exynos
 chipset and the QHD screen resolution.

Meizu MX4-QHD

Meizu MX4-QHD

A screenshot has leaked over in China and the source claims it
belongs to the upcoming Meizu MX4. The screenshot shows a
camera UI and was reportedly 1536 x 2502 in resolution pointing
 to QHD resolution for the Meizu MX4 screen. The issue is that
 the screenshot cannot be found in full resolution so this could
turn out to be false information. Still it's highly possible that the
Meizu MX4 will indeed sport a resolution higher than 1080p
on what's projected to be a 5.4" display.

The screenshot reveals that the camera will be able to capture
above-1080p video - we're guessing UHD. Alleged Meizu MX4
 screenshot The Meizu MX4 has already been spotted flaunting
 impressively-thin bezels. Last year's model MX3 had bezels
equal to those of the LG G2. The Meizu MX4 is going to
 become official on September 2 and should offer a 20.7MP
 Sony-made camera, 3GB of RAM, 5.4" 2560 x 1536 display,
 an octa-core Exynos 5433, Meizu's Flyme OS 4.0 and aprice
of around $406 or €303.

Google AdSense++ way to earn


Google AdSense++ way to earn

You can make a fulltime living from Google Adsense, but it takes time and
effort. You apply for Google Adsense, get approved, and get the Adsense
code on your site. The first day, you make ten bucks. You quickly add that
up, and see that if you made ten bucks each day, you would make 600 per
month from one site. You quickly add again, and see that if you had ten
sites, all making 600 a month, you could quit your traditional job.

Once your AdSense account has been approved, you’ll likely want to get
 started by adding the code that will place Google’s ads on your site.
To get started with AdSensefor Content,
 log in to Google AdSense and click the Ad Settings tab.

It is always a good idea to find out what works for others. Again, each site is
different, but this will save you a great deal of time in researching. Become a
regular visitor to Adsense related forums.

According to Google, if you elect to display image ads, you will have more
advertisers bidding to have their ads show specifically on your pages.

This usually results in more money per click, and this is definitely worth looking
into for your site. Make sure you use GoogleChannels and reports to find out if it
is working out well for you or not.

Adsence-Importance of keyword  placement
Unit name Size
Leaderboard 728 × 90
Banner 468 × 60
Large Rectangle 336 × 280
Medium Rectangle 300 × 250
Square 250 × 250
Half Banner 234 × 60

Add ads  on your main page, where more than one post appears, visitors will see
the ads at the bottom of each of those posts.

Making money from Adsense than just putting up a
site and putting Google Adsense ad code on those pages.
There are two ways to succeed with Adsense. You either
have to have a very high traffic site, or you have to have a multitude of low
to mid traffic sites.

When you build your sites, your first order of business should be to get
them listed in the major search engines. However, you should also get
listed in more specialized directories as well, and use traffic generation
techniques such as article marketing,forum marketing, social networking,
and social bookmarking.

Use Google Analytics: Google Analytics will give you a ton of
information about the traffic that comes to your site. You can use that
information to make adjustments and additions to your site, which will
increase your Adsense revenue.

Link units
Probably the second most used ad type in the AdSense program after text
ads is the link unit. Link units are very cool because when used properly
you can make them look like they belong on your page, so users are more likely
to click them.

Making a link unit look like it belongs on your page is pretty simple. You
adjust the template colors of the ad to match the template colors of your
page. Then, when the link units are displayed on your page, they look like
links that are related to the content of the page.

Themed ads
Themed units are basically text ads that have a specific theme. Google offers
these around holiday times, and they just appear in your ad structure. You
don’t have to do anything special to use themed units — they’re automatically
 enabled in your ads when you set up your AdSense account.

Creating original content
Writing your own articles and blog posts isn’t as hard as it sounds unless you
have hundreds of Web pages to populate, which could become a very
timeconsuming effort. If that’s the case, you’ll have to use somereprints, but it’s
still best if you try to keep the most important pages on your site filled with
original content.

Reading-friendly colors:Color can be your best friend or your worst
enemy online. The first thing to remember when dealing with Web site
colors is that colors display differently on-screen than they do on paper
and colors display slightly differently on different screens. So test your
colors in the real world— online rather than on paper. It wouldn’t hurt
to take a peek at your Web masterpiece from a few different computers.

Links within articles:One last element that you should include in
your articles and blog posts is links to other, related articles and blog
posts, both on your Web site and on others’ Web sites. Linking to other
resources provides additional information for your site visitors. Usually,
those visitors will click through those links and then click back to the
page from which they came. If you worry about visitors clicking away
from your site, never to return, set your links up so that they open in a
new window. Opening links in a new window keeps your Web site open
and in front of the visitors. When they’re finished examining the site
you’ve linked to, they can close the window and be right back on your
Web site.

AdSense for Domains

AdSense for Domains is a program for parked domains, meaning domains
 that are not in active use. There are many reasons someone might want
 to park a domain, including the intention of speculating in domain names
 and protecting existing related domain names from falling into the hands
 of competitors.

Video Units
What content is more compelling then video? And how better
 to monetize this compelling content on your site than by adding
 video units from Google’s YouTube, a leader in online video?
To get started, from the AdSense Setup page, click Video unit.
 You will need to login to your YouTube account.

AdSense for Search:Feel free to mention to your site visitors that you
have a search box they can use to find whatever.

Referrals: Refer away. It’s always best if you’ve actually used the
products you’re referring so that what you tell your visitors is accurate.
 Tell them your thoughts about the products and share your stories of how
the product has performed for you.

Earning with AdSense referral ads: requires some action on the part of your
Web site visitors. Earning with referrals isn’t as simple as clicking through
a link, or even searching and then clicking through search results. AdSense
referrals have conversions— which are specific actions that must take place
before you get paid for displaying the referral ad.Even after a conversion
 takes place, the payments are a little different than
what you see with other AdSense ads. All referral ads are paid on a flat fee.
However, the fee that you’re paid can be influenced by your location. Each
advertiser sets country-specific goals, so you’re paid up tothe maximum
amount shown for each of the referrals that you make from your AdSense
referral ads.

AdSense:When a user who signed up for Google AdSense through your
referral first earns $100 within 180 days of sign-up and is eligible for
payout, you’re credited with $100. Note that it’s only when the user
firstsigns up and earns $100. If a visitor has been a member of AdSense
in the past, you don’t receive this payment. Also, this applies only to
referrals located in North America, Latin America, or Japan. All others
are counted as invalid referrals because AdSense doesn’t support other
countries at this time.

Aarray And multiple array values

Aarray And multiple array values

array[key_element1] => array(1, 2,3);
array[key_element2] => array(4, 5, 6);

 associative arrays
array[key1] => array(key => value1, key => value2, key => value3);
array[key2] => array(key => value4, key => value5, key => value6);

Basically parsing the $values array and pulling the relevant value out.
 Unsetting the array as we go to leave only the values which were not
 sorted. The remaining items in the array will be merged after the loop.
 with array_merge.

PHP array

$values = array('value1', 'value2', 'value3', 'value4', 'value5', 'value6');
$keys = array(0, 2, 1, 5);

foreach ($keys AS $key) {
    $tempOutput[] = ($values[$key])?$values[$key]:'';
    unset($values[$key]);
}

$output = array_merge($tempOutput, $values);


Make new array be joining 2 arrays
shuffle($countries);
$n = count($countries); $i = 0;
$jumble = array();
foreach ($names as $name) {
    if (!isset($jumble[$name])) $jumble[$name] = array();
    $jumble[$name][] = $countries[$i++ % $n];
}

PHP Session expire-minutes inactivity

PHP Session expire-minutes inactivity

session_cache_limiter('public');
session_cache_expire(15);
//should expire after 15  minutes inactivity

asy way to handle this, is to set a variable to $_SESSION
 every time the user visits the page after a successful login.
You can check that variable every time the page loads, and then
 you will know the last time they requested a page from the site,
 and can compare it to the current time to determine what to do from there.

session.gc_maxlifetime
session.gc_maxlifetime specifies the number of seconds after which data
 will be seen as 'garbage' and cleaned up. Garbage collection occurs
 during session start.

Furthermore, when using PHP's default session.save_handler files,
 the session data is stored in files in a path specified in session.save_path.
 With that session handler, the age of the session data is calculated on the
 file's last modification date and not the last access date.

if (isset($_SESSION['LAST_ACTIVITY']) &&
 (time() - $_SESSION['LAST_ACTIVITY'] > 1800)) {
    // last request was more than 30 minutes ago
    session_unset();     // unset $_SESSION variable for the run-time
    session_destroy();   // destroy session data in storage
}
$_SESSION['LAST_ACTIVITY'] = time(); // update last activity time stamp

          OR

if (!isset($_SESSION['CREATED'])) {
    $_SESSION['CREATED'] = time();
} else if (time() - $_SESSION['CREATED'] > 1800) {
    // session started more than 30 minutes ago
    session_regenerate_id(true);  
// change session ID for the current session and invalidate old session ID
    $_SESSION['CREATED'] = time();  // update creation time
}

Note that session.gc_maxlifetime should be at least equal to the
 lifetime of this custom expiration handler 1800 in this example.

PHP INTERFACES


Class inheritanceenables you to describe a parent-child relationship
between classes. For example, you might have a base class
 Shapefrom which both Squareand Circlederive. However,
 you might often want to add additional “interfaces” to classes,
 basically meaning additional
 contracts to which
the class must adhere. This is achieved in C++ by using multiple
 inheritance and deriving from two classes. PHP chose interfaces
 as an alternative to multiple inheritance, which allows you to specify
 additional contracts a class must follow. An interface is declared
similar to a class but only includes function prototypes without
implementation and constants. Any class that “implements”
 this interface automatically has the interface’s constants defined and,
as the implementing class, needs to supply the function definitions for the
interface’s function prototypes that are all abstractmethods unless you
declare the implementing class as abstract.

abstract class Shape {
function setCenter($x, $y) {
$this->x = $x;
$this->y = $y;
}
abstract function draw();

protected $x, $y;
}
class Square extends Shape {
function draw()
{
// Here goes the code which draws the Square
...
}
}
class Circle extends Shape {
function draw()
{
// Here goes the code which draws the Circle
...
}
}
You can see that the draw()abstract method does not
 contain any code.

To implement an interface, use the following syntax:
class A implements B, C, ... {
...
}

Classes that implement an interface have an instance of a relationship
 with the interface; for example, if class Aimplements interface
 myInterface, the following results in '$obj is-A myInterface'printing:

$obj = new A();
if ($obj instanceof myInterface) {
print '$obj is-A myInterface';
}