Archive for php

You are browsing the archives of php.

Convert csv to xls (excel) in php

Luckily for me, Ingatius Teo has done all of the heavy lifting, I just had to add a little code around it. Here’s the excel.php class: http://www.phpclasses.org/browse/package/1919.html
When faced with legacy systems, it’s nearly inevitable you’ll come across csv files. In fact, when you’re moving data from anywhere to anywhere, you’re likely to run into csv [...]

Adventures in SOAP and WSDL

Got my first real SOAP challenge: I’ve got to integrate Cybersource’s payment system into our newish RHEL5 servers. The challenge is that our OS is now 64-bit, and we were using their Simple Order 32-bit API in the form of php and perl extensions.
Bzzt. No go. Wisely, Cybersource has decided to go the Web Services direction, so the implementation isn’t [...]

Where am I? PHP, Pear, Net_GeoIP and Me: Geo-location by IP

Legalese: “This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/.”
The mission: show our local (in the meastspace sense) visitors a different page from the folks further away. We wanted to show off our store, and attract people to stop in and sign up for photography seminars and classes. (Memo to marketing: perhaps we [...]