Basic 2checkout processing script

We do not have a rant today, nor we do have a review. Today I am going to go over something that a lot of people ask me – how to create a very basic 2checkout processing script. I am going to say now that this guide is simply how to do the processing side of it, it will not cover anything like the database side of things so you can create something like automatic downloads – we may do that as another tutorial.

2checkout HTML Form.

The first thing we need to do is the HTML form for 2checkout. We are going to be using the single page checkout for 2checkout as I prefer that one. Replace sid value with your own and setup the bits below to what you want it to be called. If you want to add a second product to the checkout form, add things like c_name_2, c_price_2 etc. As stated either, I am not going into the database side of things in this tutorial but you can always use a programming language to prefill all in this and use cart_order_id as a method to know what order someone is ordering.

Read more

Downtime Notice – 9/02/2012

I am sure many people may have noticed that Tweaked for your Pleasure went offline some time in the morning only to come back online at a later time. Well, I figured I may as well write why so. Basically what happened is my vps provider called VPS.NET on Feb 8, 2012 decided for a reason I do not know to do a SAN synchronization at the database that the vps is located.

Well this was all good but what happened is the I/O on the SAN unit went nuts and well it crashed a lot of things and forced VPS.NET to ultimately having to stop the SAN synchronization and delay it until a later time.

Read more

Yet another Javascript redirect

Google Safe Browsing Warning PageThis article is not really a rant but rather an alert for any that is currently Googling this. I have found on a few websites that I hosted on an older system had random PHP script inserted into the start of the index.php file.

The code below is what is being inserted into index.php files. So far I have not seen it attack any other pages.

However with that said, lets see what this PHP code is doing and hopefully what you can do about it.

As you can see this is clearly just a encoded PHP script – much like the same I do on Can you work it out. So if we just decode it, we now get what the server is actually executing.

Read more

Finish the darn site

In these modern ages, everyone and even their dog now has a website. Many of these take the form of a weblog much like this one, a forum, or a simple HTML page (I figure we could throw in social network profiles as well) and that does bring out a slight issue – it is making the World Wide Web look like an unfinished, lazy job.

The reason I say this is quite often that people will start a website and it would never get finished without the intent of ever finishing it. Developing websites can take ages to do as first there is deciding what to do the website about, design, coding and things along those lines but I am “moaning” at people who never maintain their website after it has been developed.

Read more