Bootstrap from Twitter

May 20th, 2012 by Jhon | No comments

Twitter Bootstrap is a toolkit. it is designed for faster and rapid web applications development. Twitter Bootstrap is a collection of CSS and Javascript. it is a cross browser API supports all browser with some of the latest browser techniques to provide you with stylish typography, forms, buttons, tables, grids, navigation and many more. So with Twitter Bootstrap files you can develop your web pages with Grids, Layouts, Typography, Tables, Forms, Navigation, Alerts etc.

Why use Bootstrap?

Actually Bootstrap is just CSS. But it’s very flexible and offers much more power than regular CSS. with its flexibility we can gain a range of features like nested declarations, variables, mixins, operations, and color functions. it is very easy impliment just drop it in your code and go ahead. it takes very little time during compilation becuase all is accomplished via Javascript and also there is no superfluous images or Flash.

continue reading »

Major Mobile Web Development JavaScript Frameworks

May 19th, 2012 by Jhon | No comments

To develop rapidly, deploy cross-platform mobile apps and websites, there’s a wide range of JavaScript frameworks you can take advantage of these.

Here in this article we will discuss, major mobile web development javaScript frameworks.

 

1. Titanium Mobile

 

Titanium Mobile is a next generation Mobile Plateform . it is the first mobile platform to combine the flexibility of open source development technologies with the power of cloud services. By Titanium Mobile, you can develop mobile apps for iOS and Android.

URL: http://www.appcelerator.com/
Documentation:http://www.appcelerator.com/products/titanium-mobile-application-development/

continue reading »

11 Popular JavaScript Frameworks That Can Make You a Better Web Developer

May 18th, 2012 by Jhon | No comments

Today, JavaScript libraries is become back-bone of web development. with the Web 2.0 web standard, a lot of changed with Javascript libraries or Ajax. Actually Javascript libraries makes dynamic pages effect and interactive. Using frameworks allows a developer to do more with less code.

Below, you will find some of the most popular JavaScript frameworks that can improve your skills as a web developer.

1. jQuery

 

jQuery is a most popular Javacript library. it changed the way of Javascript writing. it is a cross browser Javacript Library that assist to HTML document traversing, event handling, animation and Ajax interactions for rapid web development.

URL: http://jquery.com/
Documentation:http://docs.jquery.com/

continue reading »

Most Popular Payment Gateways Services

May 17th, 2012 by Jhon | No comments

In this article, we will be reviewing most popular Payment Gateways Services for accepting payments on the Web.

1. Authorize.net

Over a decade, Authorize.Net has been a leading provider of payment gateway services, managing the submission of billions of transactions to the processing networks on behalf of merchant customers. Authorize.Net is a solution of CyberSource Corporation, a wholly owned subsidiary of Visa.

continue reading »

PHP interview questions

May 16th, 2012 by Jhon | No comments

Q 1- What are magic methods?
Ans:

Magic methods are the members functions that is available to all the instance of class Magic methods always starts with “__”. Eg. __construct All magic methods needs to be declared as public To use magic method they should be defined within the class or program scope Various Magic Methods used in PHP 5 are: __construct() __destruct() __set() __get() __call() __toString() __sleep() __wakeup() __isset() __unset() __autoload() __clone()

Q 2- What is magic quotes?

Ans:

Magic Quotes is a process that automagically escapes incoming data to the PHP script. It’s preferred to code with magic quotes off and to instead escape the data at runtime, as needed. This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.

Q 3- What is design pattern? singleton pattern?

Ans:

A design pattern is a general reusable solution to a commonly occurring problem in software design.

The Singleton design pattern allows many parts of a program to share a single resource without having to work out the details of the sharing themselves.

Q 4- Types of error? how to set error settings at run time?

Ans:

Here are three basic types of runtime errors in PHP:

i. Notices: These are trivial, non-critical errors that PHP encounters while executing a script – for example, accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all – although you can change this default behaviour.

ii. Warnings: These are more serious errors – for example, attempting to include() a file which does not exist. By default, these errors are displayed to the user, but they do not result in script termination.

iii. Fatal errors: These are critical errors – for example, instantiating an object of a non-existent class, or calling a non-existent function. These errors cause the immediate termination of the script, and PHP?s default behaviour is to display them to the user when they take place.

Q 5- what is cross site scripting? SQL injection?

Ans:

Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications which allow code injection by malicious web users into the web pages viewed by other users. Examples of such code include HTML code and client-side scripts.

SQL injection is a code injection technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed

Q 6- what is URL rewriting?

Ans:

Using URL rewriting we can convert dynamic URl to static URL. Static URLs are known to be better than Dynamic URLs because of a number of reasons

i. Static URLs typically Rank better in Search Engines.
ii. Search Engines are known to index the content of dynamic pages a lot slower compared to static pages.
iii. Static URLs are always more friendlier looking to the End Users.

Q 7- What is the major php security hole? how to avoid?

Ans:

a) Never include, require, or otherwise open a file with a filename based on user input, without thoroughly checking it first.
b) Be careful with eval() Placing user-inputted values into the eval() function can be extremely dangerous. You essentially give the malicious user the ability to execute any command he or she wishes!
c) Be careful when using register_globals = ON It was originally designed to make programming in PHP easier (and that it did), but misuse of it often led to security holes.
d) Never run unescaped queries.
e) For protected areas, use sessions or validate the login every time.
f) If you don’t want the file contents to be seen, give the file a .php extension.

Q 8- What is MVC? why its been used?

Ans:

Model-view-controller (MVC) is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other. In MVC, the model represents the information (the data) of the application; the view corresponds to elements of the user interface such as text, checkbox items, and so forth; and the controller manages the communication of data and the business rules used to manipulate the data to and from the model.

Q 9- What is framework? how it works? what is advantage?

Ans:

In general, a framework is a real or conceptual structure intended to serve as a support or guide for the building of something that expands the structure into something useful. Advantages : Consistent Programming Model Direct Support for Security Simplified Development Efforts Easy Application Deployment and Maintenance.

Q 10- What is CURL?

Ans:

CURL stands for Client URL Library.

CURL is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos…), file transfer resume, proxy tunneling and a busload of other useful tricks.

CURL allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP’s ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

Q 11 – What is XML-RPC ?

Ans:

XML-RPC is a remote procedure call protocol which uses XML to encode its calls and HTTP as a transport mechanism. An XML-RPC message is an HTTP-POST request. The body of the request is in XML. A procedure executes on the server and the value it returns is also formatted in XML.

Q 12 – What is the difference between htmlentities() and htmlspecialchars()?

Ans :

i) htmlspecialchars() – Convert some special characters to HTML entities (Only the most widely used).
ii) htmlentities() – Convert ALL special characters to HTML entities.