What are the basic difference between get and post method in php? In form submission with GET method, browser constructs a URL by taking the value of the action attribute appending a? to it, then appending the form data set (encoded using the application/x-www-form-urlencoded). The browser then processes this URL as if following a…
How to integrate Amazon Simple Pay Standard Buttons for Payment? Amazon Simple Pay allows your customers to use payment information from their Amazon.com account as a payment method on your website. You can use Amazon Simple Pay to enable payments, donations, subscriptions, and marketplace transactions. It provides easy-to-configure, cut and paste HTML code…
If you have hosted your website on a server that is not in the same time zone as you live. In the old days of PHP3 & PHP4, we would write a time_offset function or something like that to roll back or add the necessary hours to get the time correct for your own use…
What is the difference between htmlspecialchars and htmlentities PHP functions? htmlentities: This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities. htmlspecialchars: Some characters have special significance in HTML, and should be represented by HTML entities if they…
What is the difference between cookies and session? HTTP is a stateless protocol. That mean, that treats each request as an independent transaction that is unrelated to any previous request. So, how about the request we want to make frequently, like username or id? As you know, we could store our data in COOKIE.…
Complete guide of cookies and session in php SESSION Many New PHP developers are often confused whether to use sessions or cookies for their websites. Both cookies and sessions have their advantages and drawbacks. PHP developer should first understand the differences between each so that he can choose better option according to need.…