Category Archives: PHP Code
Sometimes you just want to use a different password that is more secure than what you normally use. It's not always easy to get that password. Dreaming one up typically means that you will use at least some portion of the password that is associated with something you know.
On the other hand, you may want to create an automatic registration system (such as in an e-commerce site) that automatically creates a random password the first time someone purchases something.
Creating a random password generator means that you can easily generate secure passwords on the fly. The code that you will be needing to accomplish that is listed below.
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 you create a substring of certain length, you can easily cut words in half and lose their meaning. You need to be able to create a substring that keeps words intact. There are a couple methods that you can use to do this.
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 up for free as open source.