'PHP Code' Category

January 8th, 2012

PHP: Parse a Substring without Chopping Words

Often times you need cut off a specific string of text to get just a piece of it, perhaps to fit an excerpt of the latest news on your homepage. When you want to do that, you'll need to use the substr() function to do that. The main problem with this though, is that if [...]

October 24th, 2008

PHPCart payment processor for Chase Paymentech (Orbital)

I was working on a project recently, implementing the PHPCart ecommerce shopping cart solution. The merchant uses Chase Paymentech as their credit card processor, and the PHPCart website mentioned that there was a gateway already made. However, I quickly found out that there wasn't so I had to code one myself! So I'm offering it [...]

October 15th, 2007

Build an image slideshow with PHP & JavaScript

There are numerous scripts out there that use PHP to scan the contents of a particular directory, and create a "gallery" of sorts from all of the images in the folder. There are also JavaScripts out there that allow you to rotate between images in a gallery without refreshing the page – thus creating a [...]

September 23rd, 2007

How to parse a CSV file with PHP

It's a very common feature request in any web application to be able to upload data in a CSV file rather than having to manually enter every single item. In that case, you need to build in some intelligence to be able to parse the data from the CSV file.

September 13th, 2007

How to convert text to speech with PHP

I think it would be pretty darn cool to build a speech recognition website. I mean, I'm not sure that it's all that useful though. However, I guess it is useful in cases like where your visitors can't read your CAPTCHA block, so they click "read text". Anyhow, if you want to do either of [...]

Next Page »