Extended iTunes Track class for PHP

  • September 26, 2010
  • James Skemp
In a previous article, I had outlined classes in C# and PHP to handle iTunes Playlists to Xml outputs. Having let it sit on the back burner for long enough, I finally went back to the PHP class and finalized the constructor. I also added two functions for sorting. Below I have the current code for the class (a current version of the Track class for PHP will always be available elsewhere) and then an example implementation.

Read More

iTunes Track class in C# and PHP

  • September 8, 2010
  • James Skemp
I've recently begun reading up on PHP again. As I'm most fond of my iTunes Playlists to Xml application, I thought I'd work with that application's output - XML files with playlist data - as I continued to dig into PHP (instead of stopping now that I know enough to tweak existing code and create new functionality). Here's a basic Track object in C# and PHP. I'll of course be elaborating on these as time goes by (and already have code for the C# implementation).

Read More

Enabling PHP file_put_contents() support on IIS 7.5 on Windows Server 2008 R2

  • September 1, 2010
  • James Skemp
I've already installed the current verison of PHP 5.2 on my Windows Server 2008 R2 machine, but unfortunately wasn't able to get content saved via the file_put_contents function. It seems that you need to add and give IUSR the necessary permissions on the file (or directory) in order for writes to work properly.

Read More

Upgrading PHP (4.4.2 to 4.4.4 and 5.1.4 to 5.2.0)

  • November 26, 2006
  • James Skemp

In this article, we'll be upgrading PHP on our local, Windows, Web server. In previous guides we installed PHP 4.4.2 as well as PHP 5.1.4, both on the same machine, with the ability to switch as we like. However, we've yet to cover how to upgrade either installation (and upgrading is definitely a need).

Read More

PHP Forum Software Showdown Part 6: phpBB

  • November 25, 2006
  • James Skemp
It's that time again. This time, we'll be looking at phpBB. “phpBB is a high powered, fully scalable, and highly customizable Open Source bulletin board package. phpBB has a user-friendly interface, simple and straightforward administration panel, and helpful FAQ. Based on the powerful PHP server language and your choice of MySQL, MS-SQL, PostgreSQL or Access/ODBC database servers, phpBB is the ideal free community solution for all web sites.” Lot's of features, so let's get to it.

Read More

PHP Forum Software Showdown Part 5: PunBB

  • November 24, 2006
  • James Skemp

Almost there. This time, we'll be looking at PunBB. First, I did donate to PunBB development some time ago. At the time, I liked PunBB, and received some great support. It's been sometime since that time, so I don't know how things stand.

Anywho, “PunBB is a fast and lightweight PHP-powered discussion board. It is released under the GNU General Public License. Its primary goals are to be faster, smaller and less graphically intensive as compared to other discussion boards. PunBB has fewer features than many other discussion boards, but is generally faster and outputs smaller, semantically correct XHTML-compliant pages.”

In this article, we'll be installing PunBB version 1.2.14, which is the latest version, as of October 15, 2006.

Read More

PHP Forum Software Showdown Part 4: MyBB

  • November 22, 2006
  • James Skemp

This time, we'll be looking at MyBB. “MyBB is a powerful, efficient and free forum package developed in PHP and MySQL. MyBB has been designed with the end users in mind, you and your subscribers. Full control over your discussion system is presented right at the tip of your fingers, from multiple styles and themes to the ultimate customisation of your forums using the template system.”

In this article, we'll be installing MyBB version 1.2.1, which is the latest version, as of September 27, 2006.

Read More

PHP Forum Software Showdown Part 3: Simple Machines

  • November 21, 2006
  • James Skemp

Curiously, in late-September 2006, Simple Machines Forum turned three (it had been three years since 1.0 beta 1). That's curious because the current stable version of Simple Machines is 1.0.9, and there's a 1.1 RC3 out as well (as of late-October 2006).

In this article, we'll be installing Simple Machines version 1.0.9, so we can compare it to the other PHP forums that we've installed, or will be installing.

Read More

PHP Forum Software Showdown Part 2: Vanilla

  • November 20, 2006
  • James Skemp

While the Vanilla forum's are fairly unknown, it's been around for a little over a year. “Vanilla is an open-source, standards-compliant, multi-lingual, fully extensible discussion forum for the web.” The version we'll be installing, 1.0.1, was released in late-August 2006.

Read More

PHP Forum Software Showdown Part 1: bbPress

  • November 19, 2006
  • James Skemp

A relative new-comer, bbPress “is forum software with a twist from the creators of WordPress”. The first public version, 0.72, was released in mid-October 2006, and the version we'll be installing, 0.73, was released a couple of weeks later. Downloading bbPress is fairly easy, since there's only two options – one for the installer in .zip, and one in .tar.gz.

Read More

PHP Forum Software Showdown

  • November 18, 2006
  • James Skemp

Read More

Installing Apache 2.0.59 to a Windows-based computer, locally: Part 4

  • August 28, 2006
  • James Skemp
In the previous three parts of this guide, we setup Apache 2.0.59 and then created the necessary connections to use ActivePerl, mod_perl, ColdFusion MX 6.1, ColdFusion MX 7.0.2, PHP 4.4.2, PHP 5.1.4, MySQL 4.1.18, and PostgreSQL 8.1.3. This time, we're going to bring everything together by creating a number of batch files to fairly easily switch between various Web server setups. What is a batch file? A batch file is basically a way to run a number of Windows prompts at once.

Read More

Installing Apache 2.0.59 to a Windows-based computer, locally: Part 3

  • August 26, 2006
  • James Skemp
In Part 1 of this Apache 2.0.59 guide, we setup Apache 2.0.59 on a Windows XP SP2 machine. We also setup Perl and mod_perl, attempting to mimic our Apache 1.3.34 install. In Part 2 of this Apache 2.0.59 guide, we setup ColdFusion MX 6.1 and 7.0. This time, we'll be continuing in our quest by adding support for both PHP 4 and PHP 5. In previous guides, we installed PHP 4 and PHP 5, so if you need to install either one, do so with the above directions.

Read More

Dual-installing PHP: Running PHP 5 and 4 on the same local, Windows-based, Apache, server

  • July 18, 2006
  • James Skemp
In previous guides, we installed PHP 4.4.2 and later moved our installation to a different folder. This time, we'll be installing the current release of PHP 5 (5.1.4) so that we can still switch back to PHP 4.4.2 if we'd like. Downloading PHP 5.x The current version of PHP 5.x is 5.1.4, so we'll begin by downloading that from PHP.net. We’ll want to download the (Windows Binaries) zip file, even though it is significantly larger in size than the installer (the zip file is almost 9 MB, compared to less than 3 MB for the executable), but allows us a deal more flexibility.

Read More

Moving the location of PHP on your hard drive

  • July 1, 2006
  • James Skemp
In this article, we'll be moving our installation of PHP 4.4.2 from c:\php\ to c:\php4\. We'll be doing this primarily because we may like the ability to run multiple versions of PHP at one time, on our development server. This will pave the way for our future installation of PHP 5.1.4 (or the current version of PHP 5.x). The added benefit is that we'll have an idea of just how many documents are involved in a relatively simple change.

Read More

Upgrading to Zend Optimizer 3.0.1 on a local Windows-based, Apache, server

  • June 8, 2006
  • James Skemp
In a previous guide, we installed Zend Optimizer 2.6.2 to a local Windows-based Apache 1.x server, running PHP 4.4.2. This time, we'll be upgrading Zend Optimizer from 2.6.2 to 3.0.1. Downloading and backups First, we'll need to download a copy from http://www.zend.com/products/zend_optimizer/. We've already setup an account when we downloaded 2.6.2, so we can simply log in. Of course, if you've forgotten your password you can request assistance, and if you haven't downloaded Zend Optimizer before, you can setup an account.

Read More

Installing PostgreSQL on a local Windows-based, Apache, server

  • March 15, 2006
  • James Skemp
While we've already setup MySQL, another popular SQL server is PostgreSQL. Like MySQL, PostgreSQL is absolutely free, and will allow us to create databases on our local server. Downloading PostgreSQL We'll be downloading the most current version of PostgreSQL, which is 8.1.3 at the time of this writing. You can download the installation file from http://www.postgresql.org/ftp/win32. We'll want to download the regular zip file, called postgresql-8.1.3-1.zip, and weighing in at 21 MB.

Read More

A local, Apache Web server, on a Windows XP computer

  • February 27, 2006
  • James Skemp
My intention is to write a number of guides that will help someone build a functional Web server for testing purposes. Since Windows is fairly popular, I've decided to outline how to install Web server programs on it. Since Apache is both powerful and free, I've opted to use it as the core, instead of IIS, or the like. I also plan on keeping the various technologies up-to-date, yet continuing to provide the instructions for past versions used, just in case.

Read More

Installing Zend Optimizer on a local Windows-based, Apache, server

  • February 26, 2006
  • James Skemp

Note: This guide should work equally well for Zend Optimizer 3.0.1 and above. For a guide on upgrading this 2.6.2 install, see Upgrading to Zend Optimizer 3.0.1 on a local Windows-based, Apache, server.

From Zend's FAQ,

Why use the Zend Optimizer; isn't PHP supposed to be quite fast already?

The standard Zend run-time compiler used by PHP is indeed extremely fast, generating code that is usually 2 to 10 times faster. But an application that uses the Zend Optimizer typically executes another 40% to 100% faster.

So, Zend Optimizer will help decrease the time spent on processing code. If you run the file we created a few steps back, probably called http://localhost/phpinfo.php (which basically runs <?php phpinfo(); ?>), you'll notice a line that says "This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies". This is the standard Zend run-time compiler that is mentioned above. Once we download and install the Zend Optimizer, we'll see some additional lines here.

Read More

Installing PHP on a local Windows-based, Apache, server

  • February 22, 2006
  • James Skemp
While our previous article walked through adding Perl to our local server, Perl just isn't going to cut it for creating dynamic content. For that, we're going to have to install a more powerful language. As I said quite a few articles ago, if we would have gone the IIS route, we could have the use of ASP. However, since we're going the Apache route, that means PHP is our best choice.

Read More

PHP and MySQL work

  • December 23, 2005
  • James Skemp
I'm looking for ideas on what I can write in PHP and MySQL.  Thus far, I've written: 1) A comments system, that still gets hit by spam (but don't they all?). 2) An admin interface to upload documents, then create a record in a database for display elsewhere (along with categories and related articles/documents). I just don't know - what do I *need* for functionality?  Maybe I'll look further into creating a RSS reader - I just don't know .

Read More

Great PHP and MySQL tutorial

  • November 5, 2005
  • James Skemp

Read More