Get Website Lowest price!

Wordpress Experts!

×

php up to date

Interview questions

Interview questions

what is json?

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.JSON is an easier to use alternative to XML.

What is the difference between mysql_fetch_object and mysql_fetch_array?

AnswerMysql_fetch_object returns the result from the database as objects while mysql_fetch_array returns result as an array. This will allow access to the data by the field names. E.g. using mysql_fetch_object field can be accessed as $result->name and using mysql_fetch_array field can be accessed as $result->[name].

What is type hinting in PHP?
Type hinting means the function specifies what type of parameters must be and if it is not of the correct type an error will occur.PHP 5 introduces type hinting  and the functions are able to  force the parameters to be objects, interfaces ,array .

Difference between include and require?

It’s how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.


What is the difference between characters 23 and x23? 
The first one is octal 23, the second is hex 23.

Use of nl2br()?
nl2br  inserts HTML line breaks(<br/>)  before all new lines in a string .

About PHP

About PHP
About PHP

Rasmus Lerdorf – Inventor of PHP

PHP Expansion  is hypertext preprocessor.
Current Version 5.5.12
Current Beta Version 5.6.02

Todays 82.0% of the websites using PHP for their server side scripting.

Server
  • To run PHP you need Server 
  • xampp,wamp,lamp servers used widely in the world

To Download xampp server click here
To Download wampp server click here
To Download lamp server click here

Open Source Database

  • php uses phpmyadmin as a opensource mysql database management system.
  • It comes along with the server

Remember(If you want immediate job learn php. don't waste time in computer center expecting some one to teach, learn yourself which is very easy can learn with a week or month.)

To know More please visit
(For more news share this blog in facebook)


PHP was conceived sometime in the fall of 1994 by Rasmus Lerdorf. Early non-released versions were used on his home page to keep track of who was looking at his online resume. The first version used by others was available sometime in early 1995 and was known as the Personal Home Page Tools. It consisted of a very simplistic parser engine that only understood a few special macros and a number of utilities that were in common use on home pages back then. A guestbook, a counter and some other stuff. The parser was rewritten in mid-1995 and named PHP/FI Version 2. The FI came from another package Rasmus had written which interpreted html form data. He combined the Personal Home Page tools scripts with the Form Interpreter and added mSQL support and PHP/FI was born. PHP/FI grew at an amazing pace and people started contributing code to it.
It is difficult to give any hard statistics, but it is estimated that by late 1996 PHP/FI was in use on at least 15,000 web sites around the world. By mid-1997 this number had grown to over 50,000. Mid-1997 also saw a change in the development of PHP. It changed from being Rasmus' own pet project that a handful of people had contributed to, to being a much more organized team effort. The parser was rewritten from scratch by Zeev Suraski and Andi Gutmans and this new parser formed the basis for PHP Version 3. A lot of the utility code from PHP/FI was ported over to PHP3 and a lot of it was completely rewritten.
Today (end-1999) either PHP/FI or PHP3 ships with a number of commercial products such as C2's StrongHold web server and RedHat Linux. A conservative estimate based on an extrapolation from numbers provided by NetCraft (see also Netcraft Web Server Survey) would be that PHP is in use on over 1,000,000 sites around the world. To put that in perspective, that is more sites than run Netscape's flagship Enterprise server on the Internet.


If you have any doubt in installation or configuration leave comment here or contact me .

PHP Frameworks

PHP Frameworks
Frameworks(poularity wise)

There are many php frameworks are available. Currently there are 25 open source php framework available.

These are the frameworks are mainly used for web development.


Here I described only three, If you wish to know more visit(http://phptrends.com/).


If you have any doubt in codeigniter comment below i will touch you..



About codeigniter
  CodeIgniter is an open source rapid development web application framework, for use in building dynamic web sites with PHP. The first public version of CodeIgniter was released on February 28, 2006, and the latest stable version 2.1.4 was released July 8, 2013.
CodeIgniter is loosely based on the popular Model-View-Controller development pattern. While view and controller classes are a necessary part of development under CodeIgniter, models are optional.
CodeIgniter is most often noted for its speed when compared to other PHP frameworks. In a critical take on PHP frameworks in general, PHP creator Rasmus Lerdorf spoke at frOSCon in August 2008, noting that he liked CodeIgniter "because it is faster, lighter and the least like a framework."
CodeIgniter's source code is maintained at GitHub,and as of the preview version 3.0-dev, is certified open source software licensed with the Open Software License ("OSL") v. 3.0. Versions of CodeIgniter prior to 3.0 are licensed under a proprietary Apache/BSD-style open source license.

It is the best framework for Beginers to learn.
Click Here To Know More About Codeigniter http://ellislab.com/codeigniter/user-guide/

About Laraval

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
Laravel aims to make the development process a pleasing one for the developer without sacrificing application functionality. Happy developers make the best code. To this end, we've attempted to combine the very best of what we have seen in other web frameworks, including frameworks implemented in other languages, such as Ruby on Rails, ASP.NET MVC, and Sinatra.
Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.

To Learn Laraval click herehttp://laravel.com/docs/quick