Archive for PHP

Rotation of Image from UPS in PHP

I was recently implementing UPS API for PHP.

I found those two great sources from Gabriel Bull or simple one from Alex Fraundhof.

When I ask to get the shipping Label by

$Response = $ShipperObj->createLabel($params);

the result is label that is rotated by 90 degrees to the right.

view_order

I didn’t found any parameter to get the label rotated as I want.

Read more

Simple solution to store credit card data

I has been getting request to build web pages and applications that would receive credit card for years.

And I always rejected that as I didn’t want to get responsibility of getting those data leaked.

But recently I got to situation that I couldn’t refuse it anymore.

So I was looking how to do it safe and I got an idea Рto use SSL mechanism and keep data stored at the server in encrypted form.

purchase-ssl-certificate

Read more