Intuit Payment Gateway Integration with PHP

This tutorial intends to guide you through the integration process with the intuit payment gateway. This guide lets you get started with API using minimum number of steps, otherwise it was a head scratching experience where to get start, how to start, what to read etc. etc.

You must have Intuit’s developers account to get started with Intuit’s payment gateway. Follow these steps to get started with intuit: Read more »

Jomsocial fbconnect password reset automatically

You may have encounter the issue that after login with facebook in your jomsocial component, you are not able to login via simple username/password combination, it shows that my username/password is incorrect. Some days back i encounter with same issue. I started looking at the code for facebook connect, what i found is facebook library update your password everytime you login with facebook.

‘root/components/com_community/controllers/connect.php’, Here is code for password change: Read more »

Interview Questions Part – 3

I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

PHP Interpreter treats numbers beginning with 0 as octal. Look at the similar PHP interview questions for more numeric problems.

Would I use print “$a dollars” or “{$a} dollars” to print out the amount of dollars in this example?

In this example it wouldn’t matter, since the variable is all by itself, but if you were to print something like “{$a},000,000 mln dollars”, then you definitely need to use the braces. Read more »

Interview Questions Part – 2

What does a special set of tags do in PHP?

What does a special set of tags <?= and ?> do in PHP?
The output is displayed directly to the browser.

How do you define a constant?
Via define() directive, like define (“MYCONSTANT”, 100); Read more »

Interview Questions Part – 1

What’s PHP

The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications.

What Is a Session?
A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests. Read more »

Invalid Token During Registration Jomsocial

Sometimes you may encounter invalid token error during registration if you have developed your website in joomla/jomsocial platform. This is because default time limit is set to 10M i.e. 600 Seconds in configurations.

For altering this value you must have access to the Database. Steps for altering this value are as below: Read more »

Comparison between ETag header and Last-Modified header

The difference between ETag and Last-Modified header is more syntactically. Last-Modified header can be interpreted by clients and usually contains a timestamp of the resources on which it was last modified and arithmetic check is performed between timestamps while sending requests to server to decide whether to use the local copy of the resource or to download the new one. Last-Modified header uses “If-Unmodified-Since” header to compare file versions. If your file changes frequently you must use Last-Modified header. Read more »

HTTP ETag

HTTP ETag is a unique identifier for the resource copies (css, js and images etc. etc.).
According to Wikipedia – “An ETag (entity tag) is an HTTP response header returned by an HTTP/1.1 compliant web server used to determine change in content at a given URL. When a new HTTP response contains the same ETag as an older HTTP response, the contents are considered to be the same without further downloading.” Read more »

Protect FORMS from the spam bots

To protect FORMS from the spam bots, we must find a way so that the FORM field’s names & ids are generated dynamically every time the form appears, so that that spammers are unable to make a script to pick the form fields by name or ids and giving them their values. Because when a spammers comes to site, they analyze the form and make a script based on your form fields or moreover they copy the form to their local machine and keep on spaming. So, if we find a way to generate from fields dynamically, then we can stop spam bots to make such a script or by any other mean. Read more »

Magento: Add a custom State / Province / Region to a Country

You may  need to add a custom State / Province / Region to a Country in Magento, you’ll need to modify the database manually as there currently isn’t a means to do this from within the Magento admin. Fortunately it’s pretty simple – there are 2 tables involved: directory_country_region and directory_country_region_name.

Read more »