1. File upoading with progress bar in PHP
http://www.johnboy.com/php-upload-progress-bar/
2.curl posting xml max size and its config for third party website
3.jquery - code for apending the html element with existing "div" tag ?
ex:
<div>
<div>
<input type="text" name="uid">
<input type="radio" name="utype">
</div>
</div>
How to append the one more html element within the "div" and before text box
Ans: $('div>div:eq(0)').prepend('html element')
4.class with function overloading
class a{
function sum(){
// do something
}
function sum($arg1=0){
// do something
}
}
How do you differencitate above functions
Ans: Preferences are
1. Argument length
2. Argument data type
3. Argument default value
5.singelton Pattern
The Singleton ensures that there can be only one instance of a Class and provides a global access point to that instance. Singleton is a "Gang of Four" Creational Pattern.
The Singleton pattern is often implemented in Database Classes, Loggers, Front Controllers or Request and Response objects.
6.zend URL rewriting
Extending the router class and predispatch function we can do this
7. find out the internet connectivity is active for ajax call
Ans:
$.ajax({
type: 'GET',
url: 'http://www.mywebapp.com/keepAlive',
timeout: 15000,
success: function(data) {},
error: function(XMLHttpRequest, textStatus, errorThrown) {}
})
8.search hacking
1) Make sure magic quote is off and try with ' user input
2)Try with cross site scripting
9.coding for confliting the files
We can make use of some "svn" tools
10.error/exception handling methods
11.Memchache, DB comparision -> How to compare cache data and DB data is same or not?
12.Pagination while deleting the record?
13.How to keep tracking the display bulk of data ?
- Use pagination
- cache method