Tuesday, January 31, 2012

New Release PHP 5.4.0

New PHP Version 5.4.0 is planned to be released on February, 2 2012. It is a result of many months of development.

In the PHP Version 5.4.0 many features included. Some features are listed below.

  • Traits
  • Built-in Web server
  • Binary notation for integer values
  • Array short syntax
  • Annotations

PHP does not support multiple inheritance. This means that unlike languages such as C++, it is not possible to create one class by inheriting the behavior of multiple other classes.

However, PHP implements the support to have classes with multiple interfaces since version 5. This is a simple approach inspired in Java that avoids the ambiguity problems of C++ multiple inheritance implementation.

The problem of using either multiple inheritance or multiple interfaces is that it becomes easy for creating bloated classes that have much more inherited functions than they may really need in practice.

Traits provide a simpler alternative. You can define a trait practically the same way you define a class or an interface with whatever functions you need. Then you use them in a new class you want to have those functions.

Here is an example taken from the original proposal RFC document:


  trait ezcReflectionReturnInfo {
    function getReturnType() { /*1*/ }
    function getReturnDescription() { /*2*/ }

  class ezcReflectionMethod extends ReflectionMethod {
    use ezcReflectionReturnInfo;
    /* ... */
  class ezcReflectionFunction extends ReflectionFunction {
    use ezcReflectionReturnInfo;
    /* ... */

Built-in Web server

Although Apache has been losing popularity in the latest years for more efficient Web servers in use in production environments, it is still very popular among PHP developers that use it to test their applications in their development environments.

However, Apache is still too cumbersome and complicated to configure, especially when you just want to set it up for a simple development environment. Therefore, PHP 5.4 introduces a Web server that comes built in the PHP command line version.

This means that you only need to execute a simple PHP command and you have Web server running ready for you to test your applications without depending on setting Apache or any other external Web server.

Another interesting purpose of this built-in Web server is that you can develop browser based applications that run in the local machine and you only need the base PHP installation for that.

Here is an example command of how to run PHP to work as a Web server.

$ php -S localhost:8000

 Server is listening on localhost:8000... Press CTRL-C to quit.
 [Thu Mar  3 05:42:06 2011] ::1:56258: /
 [Thu Mar  3 05:42:06 2011] ::1:56259: /?=PHPE9568F34-A769-00AA02
 [Thu Mar  3 05:42:06 2011] ::1:56260: /?=PHPE9568F35-A769-00AA04
Binary notation for integer values

When you need to use literal values in your PHP code you can represent them in decimal, hexadecimal or octal. Now in PHP 5.4 you can also represent them in binary.

In octal you would need to prefix the value with a 0. For instance, 010 represents the number 8, not 10 as some may expect. In hexadecimal you would need to prefix the values with 0x, for instance 0x12 represents the number 18. In binary you need to prefix the number with 0b, for instance 0b101 represents the number 5.

Array short syntax

The popularity of JSON made it a common format for exchanging serialized data between code eventually written on different languages.

One basic difference between JSON and PHP literal value format is that arrays are represented by brackets instead the usual array() construct. Some people proposed to add support for a shorter syntax similar to JSON, but the proposal was not approved by PHP core developers.


Annotations are a form of adding metadata to your code. The metadata information can be used by those tools for instance to produce additional support code, so you do not have to write such code manually. One common use is to generate PHP code or SQL statements to map data between class objects and database tables.

There were several proposals to implement annotations in PHP, very similar to the way they work in other languages like Java and C#. Those proposals ended up not being accepted or fully implemented to make into PHP 5.4.

Still, there are alternative approaches that consist in separate annotation parser tools that extract annotation metadata from PHP comments.

Tags: PHP,PHP Version 5.4.0,PHP New Releases,PHP Traits,PHP Annotations,PHP 5.4 Features,Upgrade PHP Version

Promote your website in the right ways

While most of the links to your site will be gained gradually, as people discover your content throughsearch or other ways and link to it, Google understands that you'd like to let others know about the hard work you've put into your content. Effectively promoting your new content will lead to faster discovery by those who are interested in the same subject. As with most points covered in this document, taking these recommendations to an extreme could actually harm the reputation of yoursite.

Best practices for promoting your website

  • Blog about new content or services - A blog post on your own site letting your visitor base know that you added something new is a great way to get the word out about new content or services. Other webmasters who follow your site or RSS feed could pick the story up as well.
  • Don't forget about offline promotion - Putting effort into the offline promotion of your company or site can also be rewarding. For example, if you have a business site, make sure its URL is listed on your business cards, letterhead, posters, etc. You could also send out recurring newsletters to clients through the mail letting them know about new content on the company's website.
  • Know about social media sites - Sites built around user interaction and sharing have made it easier to match interested groups of people up with relevant content.
    Promote your website in main social media sites like facebook, twitter, linkedin

    • attempting to promote each new, small piece of content you create; go for big,
      interesting items
    • involving your site in schemes where your content is artificially promoted to the
      top of these services

  • Add your business to Google's Local Business Center - If you run a local business, adding its information to Google's Local Business Center will help you reach customers on Google Maps and web search. The Webmaster Help Center has more tips on promoting your local business.
  • Reach out to those in your site's related community - Chances are, there are a number of sites that cover topic areas similar to yours. Opening up communication with these sites is usually beneficial. Hot topics in your niche or community could spark additional ideas for content or building a good community resource.

    • spamming link requests out to all sites related to your topic area
    • purchasing links from another site with the aim of getting PageRank instead of

Tags : Promote Website,Best Way to Promote your website, Website Promotion Help,Wesite Promotion Tips,Social Media Website Promotion Help, Promote your website using google local business tool,Google Local business,Increase your page rank in search engine sites

Wednesday, January 25, 2012

Take advantage of web analytics services

If you've improved the crawling and indexing of your site using Google Webmasters Tools or other services, you're probably curious about the traffic coming to your site. Web analytics programs like Google Analytics are a valuable source of insight for this. You can use these to:

  • get insight into how users reach and behave on your site
  • discover the most popular content on your site
  • measure the impact of optimizations you make to your site (e.g. did changing those title and description meta tags improve traffic from search engines?)
  • create new reports and analysis on it

For advanced users, the information an analytics package provides, combined with data from your server log files, can provide even more comprehensive information about how visitors are interacting with your documents (such as additional keywords that searchers might use to find your site).

Lastly, Google offers another tool called Google Website Optimizer that allows you to run experiments to find what on-page changes will produce the best conversion rates with visitors. This, in combination with Google Analytics and Google Webmaster Tools.

see our other articles related to google website tools.

Friday, January 20, 2012

Helpful resources for webmasters

Below are the helpful resource for google webmaster tools.

Friends above links helps to learn google webmaster tools. If you know more links then share with us in comment.

Tags: Google webmaster,Google Webmaster Toolkit,Guidline to use Google webmaster Toolkit,Increase your rank using google webmaster toolkit

Thursday, January 19, 2012

Google Webmaster Tools helps to increase your site's traffic

Major search engines, including Google, provide free tools for webmasters. Google's Webmaster Tools help webmasters better control how Google interacts with their websites and get useful information from Google about their site. Using Webmaster Tools won't help your site get preferential treatment; however, it can help you identify issues that, if addressed, can help your site perform better in search results. With the service, webmasters can:

Yahoo! (Yahoo! Site Explorer) and Microsoft (Live Search Webmaster Tools) also offer free tools for webmasters.


Tags: Google Analyze search data, Google Sitemap XML, Google Webmaster, Google Webmaster Tools, Live Search Webmaster Tools, SEO Traffic Increase help, Yahoo! Site Explorer,Google Webmaster Tools tips & tricks,Google Webmaster Tool Tutorial,Google Webmaster Sitemap XML Help

Wednesday, January 4, 2012

Airtel PC setting for Internet | Airtel GPRS Setting | Airtel INTERNET Settings | Mobile Office Settings

Data Bearer: GPRS
Access Point Name: airtelfun.com
User & Password: no need ( leave blank)
Homepage: http://live.airtel.in
Connection Security: Off
Proxy server. address ( IP address ):
Proxy port number: 8080

Dialup no: *99# , *99***1#

tags: airtel gprs pc manual settings, airtel gprs pc settings, airtel gprs mobile settings, airtel gprs settings, airtel gprs activation, airtel gprs apn, airtel gprs access point, airtel gprs hack, airtel gprs trick, airtel gprs speed, airtel gprs plan, airtel gprs manual settings, airtel mms settings, airtel gprs mms settings,airtel mobile office setting, Airtel mobile Office GPRS, Free Airtel Gprs Mobile office settings, airtel mobile office common settings for all phones

Nokia Phone Codes

Below are the nokia phone tips and trick. It may help you. Below are the list of some nokia phone codes.

To check the IMEI (International Mobile Equipment Identity) Type
Code Description
*#06# Information you get from the IMEI-


    TAC      FAC     SNR      SP
  • TAC = Type approval code
  • FAC = Final assembly code
  • SNR = Serial number
  • SP    = Spare

To check the phones Software revision type
Code Description
*#0000# Information you get from the Software revision-

V 05.31


  • 1ST Line  = Software revision
  • 2ND Line = The date of the software release
  • 3RD Line = Phone type

To enter the service menu type
Code Description
*#92702689# (*#WAR0ANTY#)
  • Serial number (IMEI)
  • Production date (MM/YY)
  • Purchase date (MM/YY) You can only enter the date once.
  • Date of last repair (0000=No repair)
  • Transfer user data to another Nokia phone via Infra-Red

Clock Stopping
Code Description
*#746025625# (*#SIM0CLOCK#)
To check weather your SIM Card supports clock stopping type

Code Description
To activate EFR (Enhanced Full Rate) Enter the code- *3370#
This improves call quality but decreases batterylife by about 5%
To deactivate it, Enter the code- #3370#

Nokia Phone Codes Tips and Tricks, Nokia Codes,Nokia IMEI Code,Nokia Phone Sofware Nokia Revison Code,Nokia Service menu Code, Nokia Clock Stopping Code, Nokia EFR CALL QUALITY Code

Monday, January 2, 2012

Facebook Messenger For Windows

Messenger is a Windows is a new, trial application that lets you use Facebook without beingon www.facebook.com. While you surf the web or use other applications on your computer, you can:

  • Chat and message with your friends on Facebook
  • See the latest updates from your friends in ticker
  • Get quick notifications about what’s going on

Facebook team testing out a first version of the app with a small group of people. During this trial period, Facebook team plan on rolling out changes to the app and expect outages and periods of instability as we make improvements.

To try out the first version of this app, just complete a one-time setup.


Messenger for Windows will automatically install updates. Messenger for Windows is in a trial period for a small group of people

Download AND Demo

Facebook Messenger Download Link


Write Comments on Shree Gokul Infotech Blog