Feb 13

Display ICC Cricket World Cup 2015 Live Scores & Schedule in your Website in PHP

Display ICC Cricket World Cup 2015 Live Scores & Schedule in your Website in PHP

Type 1
Get CricBuzz Live Score XML Feed:

Live Score Match:

http://synd.cricbuzz.com/j2me/1.0/livematches.xml

Gadget Scores:

http://synd.cricbuzz.com/score-gadget/gadget-scores-feed.xml

Gadget Scores:

http://synd.cricbuzz.com/j2me/1.0/sch_calender.xml

To change xml to array:

 

Type 2
Live Scorecard Widget

https://www.cricruns.com/widget/

Jan 23

If your using PHP >= 5.5 use array_column instead array_map for array column result

If your using PHP >= 5.5 use array_column instead array_map for array column result

Example:

The above example will output:

Jan 23

Split time slots between start time and end time in PHP

Creating time between start time and end time in interval of 30 Minutes in PHP

Check Result:

result:

Feb 26

Twitter POST statuses/update_with_media Example / Demo Download

Integrating Twitter in website to POST image status using Twitter POST statuses/update_with_media. Updates the authenticating user’s current status and attaches media for upload. In other words, it creates a Tweet with a picture attached. Check https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media for more details

live_demo Live DemoDownload Download

Twitter POST statuses/update_with_media Example / Demo Download

Get API_KEY and API_SECRET From you Twitter APP:

1. Go to https://apps.twitter.com/app/new to create new twitter App
Twitter Create APP

2. Don’t forgot to fill callback URL in App.(You can see in my demo downloaded file)
eg: http://demo.stackcomplete.com/twitter-post-status-with-media-demo/callback.php

3. Change permissions to read and write in App setting.
Change Twitter Permissions

4. Get your API_KEY and API_SECRET
Get your API_KEY and API_SECRET

5. Change API_KEY and API_SECRET in config.php file

config.php

6. Get other files from downloaded flies

Feb 20

Facebook to buy WhatsApp for $19 billion, Facebook CEO Mark Zuckerberg posted on his Wall why

WhatsApp Fast Growing Mobile Messaging Application. WhatsApp has more than 450 million monthly users and is popular with people looking to avoid text messaging charges. WhatsApp allows users to send messages over internet connections, avoiding text messaging fees.

The company claims it is currently registering one million new users a day. It makes money by charging users a subscription fee of $1 per year, although it offers a free model as well. Facebook has bought messaging app WhatsApp in a deal worth a total of $19bn (£11.4bn) in cash and shares. In a statement announcing the deal, Facebook founder Mark Zuckerberg described WhatsApp’s services as “incredibly valuable”.

facebook--whatsapp

Facebook CEO Mark Zuckerberg posted on his Wall, explaining why he bought WhatsApp.
The text of the letter is given below:

I’m excited to announce that we’ve agreed to acquire WhatsApp and that their entire team will be joining us at Facebook.

Our mission is to make the world more open and connected. We do this by building services that help people share any type of content with any group of people they want. WhatsApp will help us do this by continuing to develop a service that people around the world love to use every day.

WhatsApp is a simple, fast and reliable mobile messaging service that is used by over 450 million people on every major mobile platform. More than 1 million people sign up for WhatsApp every day and it is on its way to connecting one billion people. More and more people rely on WhatsApp to communicate with all of their contacts every day.

WhatsApp will continue to operate independently within Facebook. The product roadmap will remain unchanged and the team is going to stay in Mountain View. Over the next few years, we’re going to work hard to help WhatsApp grow and connect the whole world. We also expect that WhatsApp will add to our efforts forInternet.org, our partnership to make basic internet services affordable for everyone.

WhatsApp will complement our existing chat and messaging services to provide new tools for our community. Facebook Messenger is widely used for chatting with your Facebook friends, and WhatsApp for communicating with all of your contacts and small groups of people. Since WhatsApp and Messenger serve such different and important uses, we will continue investing in both and making them each great products for everyone.

WhatsApp had every option in the world, so I’m thrilled that they chose to work with us. I’m looking forward to what Facebook and WhatsApp can do together, and to developing great new mobile services that give people even more options for connecting.

I’ve also known Jan for a long time, and I know that we both share the vision of making the world more open and connected. I’m particularly happy that Jan has agreed to join the Facebook board and partner with me to shape Facebook’s future as well as WhatsApp’s.

Jan and the WhatsApp team have done some amazing work to connect almost half a billion people. I can’t wait for them to join Facebook and help us connect the rest of the world.

Feb 16

301 Redirect Your Old Domain Name to New Domain Name WordPress using .htaccess

Change your website domain name without loosing search engine rank. If you changed your website domain name without redirect then search engines consider your new domain as duplicate website.
So the 301 redirect is important.
301 Redirect Your Old Domain Name to New Domain Name WordPress using .htaccess

For Different Page Names

For Same Page Names