strtotime php-current time zone

strtotime()parsing is always done with the current time zone,
unless a different time zone is specified in the string that is parsed:
<?php
echo date("H:i T\n", strtotime("09:22")); // shows 09:22 CET
echo date("H:i T\n\n", strtotime("09:22 GMT")); // shows 10:22 CET
echo gmdate("H:i T\n", strtotime("09:22")); // shows 08:22 GMT
echo gmdate("H:i T\n", strtotime("09:22 GMT")); // shows 09:22 GMT
?>

Using the strtotime()function is easy. It accepts two parameters: the
string to parse to a timestamp and an optional timestamp. If the
 timestamp is included, the time is converted relative to the
 timestamp; if it’s not included,the current time is used. The relative
 calculations are only written with yesterday, tomorrow, and the 1
 year 2 days ago format strings.


Showing the Local Time in Other Time Zones

Showing the Local Time in Other Time Zones Sometimes, you want
 to show a formatted time in the current time zone and in
other time zones as well. The following script shows a full textual
date representation for the U.S., Norway, the Netherlands, and Israel:

<?php
echo strftime("%c\n");
echo "\nEST in en_US:\n";
setlocale(LC_ALL, "en_US");
putenv("TZ=EST");
echo strftime("%c\n");
echo "\nMET in nl_NL:\n";
setlocale(LC_ALL, "nl_NL");
putenv("TZ=MET");
echo strftime("%c\n");
echo "\nMET in no_NO:\n";
setlocale(LC_ALL, "no_NO");
putenv("TZ=MET");
echo strftime("%c\n");
echo "\nIST in iw_IL:\n";
setlocale(LC_ALL, "iw_IL");
putenv("TZ=IST");
echo strftime("%c\n");
?>

Create Login page php-Php code

 Create Login page php

<?php
            session_start();
            $host="localhost"; // Host name
            $username="username"; // Mysql username
            $password="********"; // Mysql password
            $db_name="joinfbla_services"; // Database name
            $tbl_name="members"; // Table name

            // Connect to server and select databse.
            mysql_connect("$host", "$username", "$password")or die("cannot connect");
            mysql_select_db("$db_name")or die("cannot select DB");

            // Define $myusername and $mypassword
            $myusername=$_POST['myusername'];
            $mypassword=$_POST['mypassword'];

            // To protect MySQL injection (more detail about MySQL injection)
            $myusername = stripslashes($myusername);
            $mypassword = stripslashes($mypassword);
            $myusername = mysql_real_escape_string($myusername);
            $mypassword = mysql_real_escape_string($mypassword);
            $sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
            $result=mysql_query($sql);

            // Mysql_num_row is counting table row
            $count=mysql_num_rows($result);

            // If result matched $myusername and $mypassword, table row must be 1 row
            if($count==1){

            // Register $myusername, $mypassword and redirect to file "login_success.php"
            $_SESSION['myusername'] = $_POST['myusername'];
            $_SESSION['mypassword'] = $_POST['mypassword'];
            echo 'success';
            }

            else {
            echo "Wrong Username or Password";
            }
        ?>

Php Interview-questions-with-answers
Php code for valid number
Php file uploading code
Php by code
Advanced php
Php global variables
Top 550 php interview-questions


PHP RSS feed script

PHP RSS feed script
RSS Reader PHP code

function get_feed($link)
{

    $this->load->helper('text');

    $last_update = time();

    header('Cache-Control: no-cache, must-revalidate');
    header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
    header('Content-type: application/json');

    // Load RSS Parser
    $this->load->library('rssparser');

    // Get 6 items from arstechnica
    $rss = $this->rssparser->set_feed_url($link)->set_cache_life(30)->getFeed(5);

    foreach ($rss as $item)
    {

        $pubdate = strtotime($item['pubDate']);
        $monthName = date("F", mktime(0, 0, 0, date("m",$pubdate), 10));
        $new_date = date("d.",$pubdate).' '.$monthName.' '.date("Y",$pubdate).' '.date("H:i",$pubdate);

        $array[] = array(
            'title' => $item['title'],
            'description' => character_limiter($item['description'],100),
            'author' => $item['author'],
            'pubDate' => $new_date,
            'link' => $item['link']
        );
    }

    $array = json_encode($array);

    return $array;
}

Php Interview-questions-with-answers
Php code for valid number
Php file uploading code
Php by code
Advanced php
Php global variables
Top 550 php interview-questions

PHP Functions
Php tutorial - imagemagick
php.ini Basics
PHP Sessions
Cookies Versus Sessions
PHP Web-Related Variables
PHP ERRORS
maximum size of a file uploaded
Php Image upload
php file_get_contents
MySQL Data on the Web
What are GET and POST
php and pdf
$_ENV and $_SERVER
PEAR with php
SELECTING DATA PHP
prevent hijacking with PHP
LAMP
PHP MySQL Functions
PHP Zip File Functions
Substrings PHP
PHP Variable names
PHP magic methods
How to get current session id
Add variables into a session
$_GET , $_POST,$_COOKIE
different tables present in mysql
PHP CURL
php Sessions page
PHP-sorting an array
PHP-count the elements of array
Operators for If/Else Statements
PHP file uploading code
PHP global variables
Testing working using phpinfo
PHP Code for a Valid Number
PHP-Associative Arrays
PHP mvc tutorial
PHP get_meta_tags-Extracts
difference between print and echo
PHP best tutorial-PHP variables
Reading DOC file in PHP
PHP interview questions
convert time PHP
PHP implode array elements
header function-PHP
PHP-Renaming Files Directories
PHP Classes
in_array function in PHP
keep your session secure PHP
Web Application with PHP
What is SQL Injection
PHP-extract part of a string
PHP urlencode
PHP- know browser properties
PHP- Extracting Substrings
Checking Variable Values /Types
PHP-best 20 Open Source cms
IP AddressPHP
PHP-Scope Resolution Operator
how create new instance of object
how eliminate an object
PHP- ob_start
XML file using the DOM API
PHP- MVC
PHP- CAPTCHA
PHP- Position of a Value in an Array
PHP-Mail Functions
PHP-difference include vs require
calculate the sum of values in an array
PHP-total number of rows
Show unique records mysql
MySQL Triggers
MySQL data directory
MySQL Subqueries
PHP- Networking Functions
PHP- Operators
Restore database
Conditional Functions mysql
PHP-function overloading
Friend function
mysql_connect /mysql_pconnect
PHP-Error Control Operators
what is IMAP
Apache-Specific Functions
Send Email from a PHP Script
SQL inherently
WAMP, MAMP, LAMP
Php tutorial-SYMBOLS
Table Types-MySQL
PHP-Encryption data management
PHP Array
Running MySQL on Windows
Maximum Performance MySQL
XML-RPC
PHP-static variables
Advanced Database Techniques
FTP
Codeigniter
Apache Pool Size
Why NoSQL
MySQL Server Performance
Database software
SQL Interview Answers
PHP Redirect
PHP Interview Questions with Answers
Advanced PHP

Twitter Bot

Twitter Bot that allows you to auto follow target twitter users, send
 out tweets automatically. Great for auto twitter retweet. Twitter Cards
 offer a fast and easy way to grow your user base for mobile apps.
 Simply add some new markup to your pages: when users tweet
 links to your domain.twitter account maker you can use Your own
domain, then install catchall on it: Make 1 email called catchall with
 a password, then go to Default Email adress.
Twitter Bots - ranging from auto reply bots and announcement
bots, all tested and working nicely.
Twitter bots are, essentially, computer programs that tweet of their
 own accord. While people access Twitter through its Web site
and other clients, bots connect.If you have a Twitter account, the
chances are that you have fewer than 50 followers and that you
 follow fewer than 50 people yourself. Twitter followers with links
 to diet sites, specious videos, or links to "pics"? You're not alone.
 From the slew of sketchy Direct Messages.
Twitter tools for seo techniques

Key of Seo Success

You actually need people
to visit your website unless you’re some sort of a weirdo who
 only gets excited about showing up on
Google page 1 for its own sake.
I’d like you to indulge me by participating in an experiment .
1.  Search on something that matters to you.   Maybe a hobby,
a band, a place you want to move to, whatever.
2.  When you get to the SERP, click on the entry that you think best
 matches what you’re looking for.
3.  Come back here when you’re done.
What was your experience like?  More specifically, what did you click
 on?  Why did you click on it?If you’re like me there’s a good
chance you did not just click on any old random entry.  You probably
did a quick evaluation based on what the entry looked like.

Forget about writing your content around “keywords”
  Instead, determine the theme that contains the keywords that
 are important to you and write for that theme, not those
 keywords subtle but important difference.

  Think like a human and write like a human.  Google and the
 rest are catching up to you, and if you write good content
 for humans it will pay off down the road.

After you write content, read it.  Out loud.  A couple of times.
 If it sounds awkward to you, it probably will to Google as well.
 Revise it .

Increasingly SEO is about creating content that is high quality.
 I advise you to create content that is themed according to your
 target keywords, but which is also engaging to human visitors.
  An important point of creating that interest is photography.
 So it’s only natural that we would be tempted to snag photos
 from a Google or Bing image search.  At the same time, when quality photos
can be purchased very cheaply, so the temptation is pretty minimal.

seo google
seo guide
seo-consultant
html-intro
html-tags
Why html
Power seo strategies
Best seo articles
seo tips for google
Why email-newsletters
What is character-entities
structure urls
key-factors of link
right-keywords
SEO ranking algorithm
seo research and analysis
seo sources
Top search engine ranking factors
off page seo tips

codeigniter-Creating loops

Creating loops in view files has been a stumbling block for a few developers. By
passing a multidimensional array to a view file, you can easily establish a loop in
any of your view files. Let's take a look at an example.
<?php
class Todo extends Controller
{
function index()
{
$data['todo_list'] = array("buy food", "clean up", "mow lawn");
$this->load->view('todo', $data);
}
}
?>
This is a very simple Controller. Your view file for this would be as follows:
<html>
<head>
<title><?php echo $title; ?></title>
</head>
<body>
<h1><?php echo $heading; ?></h1>
<?php echo $content;?>
<h2>My Todo List</h2>
<?php
foreach($todo_list as $item)
{
echo $item;
}
?>
</body>
</html>

Returning views as data
Youare also able to return view files as data; this can be useful if you wish to process
this data in some way. Simply set the third parameter to boolean TRUE—and it will
return the view data.

$this->load->view('welcome', NULL, TRUE);

CodeIgniter uses an output buffer to take all calls to the load view function, and
processes them all at once, sending the whole page to the browser at the same time.
So when you return views as data, you will be able to save the contents of theview
inside a variable for whatever use you need.

How to Linking Articles?

And another important thing to remember: if you are going to submit
 articles to Ezines and/or contribute your articles to newsletters and
other sites, DON’T ever forget to include a link to your site.
A little resource box with a brief description of your site and you
 should always be placed right after your articles that you have
submitted. If people like your articles, they will most likely click
 on the link directing them to your site.

While there are a great number of people who do not have the same attitude in article
writing as others, there are still those who would rather walk in piping hot coals than do
some article writing. What set other people apart from other towards article writing is that
they are prepared and has some methods and procedures in writing articles.

One of the methods you can use to prepare yourself when tasked to write in article is
creating an outline first. Creating an outline for all your articles makes you prepared. You
have an idea of what to do first and make a plan for your succeeding steps. Being
prepared makes the job easier and faster. Being organized will allow for disorientation to
be shunned away.

An outline can act as the design or blueprint for your article. This will guide you in
creating the introduction, body and conclusion of your article. Here in this point, you can
write down some of the ideas and sentences that you feel will look good in your article.
This could be some of the focal point that could help make your article creative,
interesting and appealing to a reader.

A carefully planned and fully prepared project would guarantee and ensure a problem
and worry free procedure that can virtually go without any hassles. Creating an outline
for all your articles will get you ready and breeze through writing an article in no time at
all. Here I will provide you with some tips and guidelines in how to create an outline for
all of your articles.

http://seo-tips-tech.blogspot.com/2013/01/search-engine-indexing.html
http://seo-tips-tech.blogspot.com/2013/01/selecting-data-in-php.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-india.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-new-york.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-united-states.html

How can article writing boost traffic

The article on the free content site contains a link to your own website. Readers, after
reading your articles, may choose to click on the link and pay you an unexpected visit.
Having them on the free content sites is also making these articles available to other
webmasters who may wish to publish that article on their site.

If they do, your article will include a link back to your site. And anyone who reads the
article on that site can still click on the link to visit your site.

As the list of your published articles grow larger, and more and more of them are
appearing on different websites, the total number of links to your site increases also.

Major search engines are placing a lot of significance on incoming links to websites so
they can determine the importance of a certain site.

The more incoming links the website has, the more importance search engines attaches
to it. This will then increase your website’s placement in the search results.

If you site is into promoting a product or service, the links that your articles have
achieved will mean more potential customers for you. Even if visitors only browse
through, you never know if they might be in need of what you are offering in the future.
There are also those who already have specific things they need on their mind but
cannot decide yet between the many choices online. Chances are, they may stumble
upon one of your articles, gets interested by the contents you wrote, go to your site and
became enticed by your promotions.
http://seo-tips-tech.blogspot.com/2013/11/data-feeds-success.html
http://seo-tips-tech.blogspot.com/2013/11/dynamic-seo.html
http://seo-tips-tech.blogspot.com/2013/11/email-marketing-campaign.html
http://seo-tips-tech.blogspot.com/2013/11/engineering-jobs.html
http://seo-tips-tech.blogspot.com/2013/11/facebook-custom-seo.html
http://seo-tips-tech.blogspot.com/2013/11/financial-services-jobs.html
http://seo-tips-tech.blogspot.com/2013/11/mobile-seo-checklist.html
http://seo-tips-tech.blogspot.com/2013/11/php-tutorial-imagemagick.html
http://seo-tips-tech.blogspot.com/2013/11/seo-algorithm.html
http://seo-tips-tech.blogspot.com/2013/11/seo-performance-optimized.html
http://seo-tips-tech.blogspot.com/2013/11/seo-spamming.html
http://seo-tips-tech.blogspot.com/2013/11/seo-success-factors.html
http://seo-tips-tech.blogspot.com/2013/11/small-budget-advertising.html
http://seo-tips-tech.blogspot.com/2013/11/web-hosting.html


Job at Indo-Tibetan Border Police Force

Indo-Tibetan Border Police Force
  • Sub-Inspector (Staff Nurse) : 08 posts, Pay Scale : Rs.9300-34800
  •  grade pay Rs. 4200/-, Age : 21-30 years
  • Assistant Sub-Inspector (Pharmacist) : 13 posts, Pay Scale :
  •  Rs. 5200-20200 grade pay Rs. 2800/-, Age : 20-28 years
  • Assistant Sub-Inspector (Lab Technician) : 04 posts, Pay Scale 
  • : Rs. 5200-20200 grade pay Rs. 2800/-, Age : 20-28 years
  • Head Constable (Midwife) :  10 posts, Pay Scale :
  •  Rs. 5200-20200 grade pay Rs. 2400/-, Age : 18-25 years
  • How to Apply : Application in the prescribed format should be
    sent on or before the last date 05/09/2014 -last date is 12/09/2014
     for the candidates of Far - flung areas

    View Details: http://itbpolice.nic.in