Tag Archive for PHP

Creating PHP Scripts in WordPress

As WordPress becomes more popular as a website development platform it is constantly be pushed to the limits. What should be simple blogging platform has been expanded to full blown websites with stores and a host of other integrations. However, for every addition there isn’t a plugin to drop in. In many cases your site may just act a middle…

Configuring PHP 5 with SOAP on (dv) 3.5

This article was provided by http://dotjay.co.uk/2008/mar/configuring-php-5-with-soap-on-media-temple-dv-35 dotjay.co.uk. Thanks to Jon Gibbins. Checking your current PHP installation You can use phpinfo() to check your PHP installation and see whether or not the extension you need is already installed. If it’s not listed, it’s worth checking the PHP documentation to see how it suggests installing it. In my case, the SOAP extension…

Writing Arrays to CSV or Other Delimited Files

Often, in the past when I wanted to write data to a file I would load up and array, iterate over it, and then insert tab and new line breaks so that I could create a CSV. Well, those days are long gone now that PHP5 has included this awesome and useful function fputcsv(). It takes an array as an…

A Faster Array Search in php

Php does a very good job at creating predefined methods that are optimized by default. However, sometimes with a little extra effort on our parts we can optimize a procedure even more. On the table today: the in_array() method. It is a very useful array allowing the user to search an array for a given value. The problem arises when…