Posts Tagged ‘PHP’

Using Encrypted PayPal Buttons (EWP) and IPN

If you want to accept PayPal payments on your site you have a variety of options. What I consider to be the ideal solution is a pairing of their IPN service with encrypted buttons. This allows your customers/clients to pay you securely without having to host an SSL cert on your site. Using encrypted buttons we can dynamically generate the amount values without having to worry about them being tampered with. Sure you could always verify the amount later, but why bother when there’s an easily solution around that, plus who really needs the hassle? This guide will walk you step-by-step from the question of “how?” to setting up a sophisticated payment solution.
(more…)

Simple PHP config file and how to use it. Part I

This entry is part 1 of 1 in the series A simple PHP config file

I’ve been coding PHP for awhile now, and over that time I’ve been adding too and tweaking a standard config file I use for sites/projects and developed a standardized method of implementation. Let’s take a quick look at the config file and then we’ll describe how to use it.
(more…)

Multiple Image Upload with Resize

Today’s code is in PHP and pastes together code snippets from two other sources (I wish I could remember from where…) and some of my own code.

What we have here is an image upload that supports 3 images (or more…) at a time and automatically converts them to png and resizes them to a maximum size (with width taking priority). You’ll need GD support to get anywhere.
(more…)