Monthly Archives: September 2011

SOAP vs REST

http://spf13.com/post/soap-vs-rest SOAP: – Transport Independant (REST requires HTTP. SOAP can work on HTTP, SMTP, etc) – Built in Error Handling – Only XML – Provides good ACID Transactions. – Exposes pieces of application logic , Exposes operations – Enterprise level … Continue reading

Posted in Concepts, Web development | Leave a comment

isset vs empty vs array_key_exists vs is_null

isset — Determine if a variable is set and is not NULL empty — Determine whether a variable is empty. it will return true if the variable is an empty string, false, array(), NULL, “0″, 0, and an unset variable. … Continue reading

Posted in PHP | Leave a comment

Specifying an array not beginning at element 0

$presidents = array(1 => “washington”, “adams”, “jefferson”);

Posted in PHP | Leave a comment

How can we submit the form without pressing Submit?

function checkSubmit(e) {    if(e && e.keyCode == 13)    {       document.forms[0].submit();    } } Then add the event to whatever scope you need eg on the div tag <div onKeyPress=”return checkSubmit(event)”/> http://stackoverflow.com/questions/29943/how-to-submit-a-form-when-the-return-key-is-pressed

Posted in Javascript, PHP | Leave a comment

Journey of an URL

What really happens when you type in a url in the browser? http://igoro.com/archive/what-really-happens-when-you-navigate-to-a-url/ Explanation of HTTP Protocal: http://geekexplains.blogspot.in/2008/06/whats-http-explain-http-request-and.html Explanation of HTTP Headers: http://code.tutsplus.com/tutorials/http-headers-for-dummies–net-8039

Posted in General | Comments Off on Journey of an URL

SSL vs TLS

TLS (Transport Layer Security) and SSL (Secure Sockets Layer) are protocols that provide data encryption and authentication between applications in scenarios where that data is being sent across an insecure network, such as checking your email (How does the Secure Socket … Continue reading

Posted in Security | Leave a comment

What is HTTP 404?

A Hypertext Transfer Protocol (HTTP) 404 error, also commonly known as the 404 Page Not Found error, is a response code indicating that the client was able to reach the desired server but could not find the page or file for which … Continue reading

Posted in Web development | Leave a comment

What is an SSL Certificate?

A secure sockets layer (SSL) certificate is a digitally signed credential, which is issued by a credentialing agency for a specific organization’s website. SSL certificates are used in Internet technology to ensure the safety of transmissions between a web browser and a … Continue reading

Posted in Security | Leave a comment

HTTP vs HTTPs

(http) is a system for transmitting and receiving information across the Internet. Http serves as a request and response procedure that all agents on the Internet follow so that information can be rapidly, easily, and accurately disseminated between servers, which hold information, … Continue reading

Posted in Security | Leave a comment

Security in web applications

Some common terms in web application security testing: Password Cracking:  In order to log in to the private areas of the application, one can either guess a username/ password or use some password cracker tool for the same. Lists of … Continue reading

Posted in General, Security, Web development | 1 Comment