Thursday 24 July 2014

Important PHP Interview Questions and Answers - jQuery, SQL Modes, Client Programs and Reset

How to get jQuery nth Element
//include jQuery file
<script type="text/javascript" src="jquery.js"></script>
function go_to(id_number){     
     var obj=jQuery('div.mydiv ul li:nth-child('+id_number+') a');      

jQuery Multiple File Upload Plugin

jQuery Paging
Here you can table Sorting, Searching and Paging in Easy Way

Paypal return error : malformed

I am using payapl gateway for payment in my project.
It is working fine for sandbox(test account) but no working for paypal (original paypal detail on client server);
It return following errror from paypal
        [Error] => Array
                [Number] =>  malformed


Solution: When you are sending amount in api call, sent amount with 2 digit decimal places. For Example 100.02 OR 22.32 

How to Download Openinviter?
You want to implement openInviter and your project is in Wordpress, Joomla, Drupal, Social engine, phpBB, Dolphin, Symfony & webmail. then Its maximum 2-5 min work. Just download the plugin/component & install in your application it will start working.

If your project is in some other CMS or Core PHP, then you need to download the files.
Include the file & call the appropriate function. It will start working...

What is PHP?
PHP is language that enable web-developer to create the dynamic web pages with the use of HTML/CSS/JavaScript.

What is Full Form of PHP?
Full Form of PHP is Personal Home Page but now it stand for PHP: Hypertext Preprocessor

Who is Father of PHP?
Rasmus Lerdorf

When php was invented?
PHP was created by Rasmus Lerdorf in 1995

What is Rest
REpresentational Sate Transfer.
It is set of architectural rules by which you design a web service that focus on transfer of data from one server to another ignorance of operating system and language.
It was introduced in 2000.

What is Invoking Client Programs?
MySQL client programs can be invoked from the command line. For example from a Windows console prompt OR a Unix shell prompt.
For Example
shell> mysql -h localhost -p -u myname

What are Server SQL modes?
It define what SQL syntax, MySQL should support and what kind of data validation checks it should perform.
It easier to use MySQL in different environments.

How many server SQL modes?
The MySQL server can operate in different SQL modes, and can apply these modes differently for different clients.

Thanks for reading our page