Tuesday, 10 June 2014

Top 10 PHP interview Questions



PHP Interview Top Questions

Q No. 1: Difference between $var and $$var ??
Ans: $var is php variable but $$var is reference variable. For example if $var= “John” and $$var = “Kate” then $John value is Kate.
QNo 2: Difference between $_GET and $_POST??
Ans: In $_GET method the requested data is shown in the URL but in $_POST the data is hidden in the URL. In $_GET there are limitations on the sending data but in $_POST there are no limit.
Difference between $_GET and $_POSTmethod
QNo 3: Difference between include and require??
Ans: Both are used to include the file but when file is not found then include sends warning whereas require sends fatal error
QNo 4: Why htaccess is used for??
 Ans: htaccess files are Apache server configuration files and these are used to make changes on a per directory basis. These are placed in a particular directory and directive applies to that directory.
QNo 5: Can you compare an integer 12 and string “13” in php??
Ans: Off course, you can compare because these two are numbers. Just their types are different.
QNo 6: Find the numbers of parameters in the fun??
Ans: fun_num_arg () function gives the number of parameters passed in the fun.
QNo 7: Difference between character 24 and x24??
Ans: character 24 is octal and x24 is the hex 24 in PHP
QNo 8: What is MVC??
Ans: MVC is Model , View and Controller and it is used to arrange your code in three parts.
Model: It contains the logic code
View: it contains the interface in .html, .xml form
Controller: Call of both model and view when it’s needed
QNo 9: What is Polymorphism??
Ans: Many forms of an object like motor_bike class can be extended into “Yamaha” and “Suzuki”
QNo 10: Why ob_start() and ob_get_clean() is used??
Ans: ob_start is used to buffer the output and ob_get_clean is used to stop the buffering. Here is an example:
<?php ob_start();
echo “Hello World”;
?>
Thanx
<?php $content=ob_get_clean(); ?>
So the content of the $content will be
Hello World
Thanx

Final Words

If you want to ask any other question then you can simply use comment section. I will try to reply you soon. Stay Blessed.

Saturday, 7 June 2014

Top Trends of websites in 2014



Trends of website in 2014

We are experiencing following trends in 2014

Flat Design

We all are watching flat designs in upcoming website just like Apple. Designers are including high quality images and branded text in websites.

Killing Sliders in Header

Now a day we are seeing an image with some text in it. In some websites a heading in the center and a background image

Mobile Responsiveness

Everyone is asking for responsiveness of the website. Website must be compatible with mobile phones otherwise it just failed. Every day we are noticing new brands of mobiles and other device So, developers are thinking what to do with the website so it can be compatible with every new device.

More videos less text

No need to explain it. A video can tell everything So, this trend is becoming more popular in 2014. The sharing of videos on social media is also very simple. 3D transition effect is becoming popular.

One page website

This trend started in 2013 and now becoming very popular in 2014. Many website has large scroll and managed information. Designers are trying to give more information in little space.

Focusing on one color

Many new websites are focusing on simple colors and flat designs. These things are attracting human nature. The content is also very much simplified.

No side bars

Many of new website has no side bars. Designers think that sidebars distract the men. The reading is easier when there are no sidebars. People will find useful data in no time.

Navigation is fixed

We are experiencing fixed navbars in new websites. Fixed navigation is improving day by day.

Grid View Layouts

This is just like Pinterest. If you look at Facebook, they are also going for grid styles. These styles are eye-catching and easy to read.

Best Article on SEO for Bloggers in 2014



SEO for Bloggers

·         First and foremost thing is an attractive POST TITLE. Choice of word for title should be relevant. Use the word like you talk. It should not be greater than 60-70 characters.
·         For list of famous Key words use Google AdWords Keyword Planner.  From history of keywords you can choose relevant keywords.
·         You should put some Meta Description in the range of 155- 160 characters.
·         Do not use stop words in the URLs and permalinks
·         You post length should be greater than 500 words and not more than 700 words.
·         Give a proper Title and ALT text to every image in the post. Use always optimized image.
·         Key Words must have a density of 3-4%. It means your keywords should not be repeated 2 to 3 times in the range of 100 words.
·         You should submit you website for major search engines (like Google, Yahoo and Bing). Submit your website on Google
·         Use Social networks like Facebook, Twitter and Google Plus with different titles.
·         Use relevant Labels for your post. Label length should not be so long or short.
·         Always use rel=’no-follow’ for external links. The exact syntax will be:

<a href=www.google.com rel=”nofollow”>Google</a>
·         Your theme should be SEO optimized. This thing help search engine to find your content.
·          Comment on others blog. This thing will give you more traffic as well as a good relationship.
·         The last and most important thing is useful and worthy content. These content should solve the others problem. People will automatically attract if you are giving them solutions.

Final Words

Guys! Stay blessed. Share any tips or tricks for blogger if I missed. You can share anything in comment section. If you have any query then I am with you.

Thursday, 5 June 2014

How to Submit Blogger Site Map to Google Webmaster in 2014



How to Submit Blogger Site Map to Google Webmaster in 2014


 Follow the simple Steps:
Go to this link http://www.google.com.pk/webmasters/
Now Sign-In with your same Google account which your blogger have
Google Account
Now you will see the next page. Follow the same procedure
Now you will move to following page: 

Further move on:

Add test Site

Now the most important point. You have to type this text in the textfield as shown in the Fig: (atom.xml?redirect=false&start-index=1&max-results=500)
Now just click the Submit Sitemap 
Congratulation, You are done: 
Please Comment and share your thoughts with this tutorial. Like my facebook page and also follow me on twitter for latest update about websolutions