Tag Archives: php

Simple 301 or 302 redirects with Apache & PHP

It behooves you to make sure you’ve only got one URL that serves a given piece of content–so says google. But what if you’ve got a bunch of domains that go to your page? For this blog, for example, matthew.mceachen.org, … Continue reading

Posted in Technical HOWTOs | Tagged , , | Leave a comment

Simple Image Slideshow with jQuery and PHP

I really liked Jon Raasch’s jquery-powered slideshow, but integrating it into a page requires a bunch of steps: Add the jQuery library Add the slideshow javascript function Add the CSS with opacity and z-layer set properly Upload the images for … Continue reading

Posted in Photography, Technical HOWTOs | Tagged , , | 2 Comments

Apache2, PHP, and MySQL on Mac OS X using MacPorts

1. Install MacPorts Follow the instructions here: http://www.macports.org/install.php. 2. Install apache2 sudo port install apache2 Note that the macports instructions suggest installing the launchctl script now, but we’ll do that after mysql and php are installed. 3. Install and configure … Continue reading

Posted in Technical HOWTOs | Tagged , , , , , | Leave a comment

Simple PHP image rotation script

This blog has a rotating header — if you visit /header/ and bounce on reload, you’ll see a series of random images. Here’s how it works: The header is added to a div with the following CSS: #headerimage{ background: url("/header/") … Continue reading

Posted in Technical HOWTOs | Tagged | Leave a comment