Category Archives: PHP

Basecamp: API Examples using PHP and cURL (GET)

I began working on a project today creating a type of work-request form. We use Basecamp for all of our project management, but since it’s a paid subscription and not something that we have control over, any extra functionality must … Continue reading

Posted in PHP, Web Apps | 25 Comments

PHP: Learning OOP Is Challenging

I haven’t been posting much lately because most of my free time is being poured into trying to learn Object-Oriented PHP. With the development of the Magento Product Import Script, I figured it was time to “bite the bullet” and … Continue reading

Posted in PHP | Comments Off on PHP: Learning OOP Is Challenging

PHP: Explode and Implode

I was a really late in discovering the explode and implode functions of PHP. Explode and Implode offer an extremely easy way to convert a delimited string into an array, and the exact reverse of that. Often times you will … Continue reading

Posted in PHP | Comments Off on PHP: Explode and Implode

Magento: Add Instructions to Form Field in Admin Product Add/Edit

I made some custom functionality that can happen with a product’s Short Description. Depending on what is put in that textarea, icons and special product-specific links can be displayed on that product’s view page. It requires a specific format though … Continue reading

Posted in Magento, PHP | 3 Comments

PHP: One Line If Statement (Ternary Operator)

I decided to see if there was a better way to write a simple if statement today, and of course, there was. It uses the Ternary Operator (?:). My if statement today was rather simple. I needed to find out … Continue reading

Posted in PHP | Comments Off on PHP: One Line If Statement (Ternary Operator)

Mysqli and Object-Oriented PHP

Sometimes it is easy for me to get stuck doing things the way I know how to do it, rather than finding a better, more up-to-date method. I just had a recent post about making multiple connections to mysql, but … Continue reading

Posted in MySQL, PHP | Comments Off on Mysqli and Object-Oriented PHP

Connecting to Multiple MySQL Databases with PHP

I ran into a case where I needed to connect to two seperate databases within the same script, and I didn’t know how to do it without closing one connection, and opening another.  With a little time and effort, I … Continue reading

Posted in MySQL, PHP | Comments Off on Connecting to Multiple MySQL Databases with PHP