Low End Mac's Online Tech Journal
Planning the Automation Project
Website Automation with PHP and MySQL, Part 1
Dan Knight - 2002.04.23
I've been saying it for months, but I finally sat down and started to do it. We're automating site updates.
Yes, I've been doing all the updates manually for over last five years. I've simplified parts of the process using Server Side Includes and Cascading Style Sheets, but until last Friday, all of the content on Low End Mac has been put there manually.
The Plan
I have several projects to work on and a good idea of the order I want to do them in. All involve a fair bit of programming and should be feasible using PHP, one of the hottest programming languages on the Internet:
- Automate new links on home page and other indexes.
- Overhaul our mailing lists.
- Create a system where writers can submit articles online - maybe even write and edit.
There may be other projects, but these are the ones that are most important to Low End Mac. I've been giving a lot of thought to them; preplanning is an important part of programming.
Automatic Content
Right now we have our Mac of the day, email list of the day, and deal of the day. I manually added these Monday through Friday. Right now the Mac of the day and email list of the day are automated. I've created a database for each, and the server automatically updates them every morning (at 4:00 a.m. Eastern time). That's the first project, and I still have to set things up for the deal of the day.
The second project will be automating the new LEM content links and the "recent" section that appears with our editorial content. It shouldn't be too hard, but I want to go beyond that and eventually have the program track how many times each link is clicked - and then sort links according to date and popularity. This will be a bit more of a challenge. We may also ask for feedback later on.
The third project in automating the home page will handle the "Around the Web" section. This should be easier than the second project, but it's not as high a priority. I'd like to eventually expand this section so other LEM staffers could add links, then set up a cookie-based system where subscribers could choose which kind of links they do and don't wish to see. Eventually I'd like to track clicks and feedback, which could help us decide on precedence of new links based on their author and the site publishing them.
The Email Lists
I'm very grateful to Maclaunch.com for hosting our 30+ email lists, but the current system has some limitations. Once I've automated home page and link updates on the site, I want to address these limitations by creating a program to run the lists. Here's my brief feature list:
- A single subscriber database. You have no idea how many times I receive "unsubscribe" or "please switch me to digest" messages with no indication of which list(s) the subscriber receives. A unified subscriber database would solve this. It could even store a subscriber preference for single message mode vs. digest as well as alternate versions of email addresses.
- More secure archives. I want to make sure that if/when spiders search the archives they won't be able to harvest email addresses.
- Better threading. Each posting on each list will be numbered, making it easier to figure out which specific message someone is replying to.
- More user friendly. Right now we block HTML email, but PHP includes a command that can automatically strip HTML. Instead of sending such messages back as unacceptable, the server could clean them up. We could also clean up so-called smart quotes and other symbols that aren't strict ASCII.
- Better filtering. Not only would such a program be able to filter based on words or phrases, it could also be set to remove things like the automatic footers some email services append to messages.
- Online management. Each subscriber would be mailed a password and allowed to change their subscriptions using a Web browser or turn vacation mode on and off.
Overall, I'm very excited at the prospect of having a lot more control over the way the lists operate.
Resources
My biggest resources are probably my two middle sons, both of whom are already doing a lot of programming in PHP. I'll also be borrowing their PHP 4 Bible and PHP (from the Visual "Read Less, Learn More" series).
I'll share what I learn as we go along.
Online Resources
- PHP Builder
- PHP-Scripts.com
- PHP >start here, WebDesigns1
- PHP: Learning a new language, Robelle
Join us on Facebook. Follow us on Twitter.
Recent Online Tech Journal Columns
- Optimized Software Builds Bring Out the Best in Your Mac, 2009.06.30. Applications compiled for your Mac's CPU can load more quickly and run faster than ones compiled for universal use.
- Low End Mac's Safe Sleep FAQ, 2009.06.15. What is Safe Sleep mode? Which Macs support it? How can you enable or disable it? And more.
- The Original Macintosh, 2009.01.12. An in-depth look at the original Macintosh and how it shaped future Macs.
- More in the Online Tech Journal index.
Links for the Day
- Mac of the Day: Macintosh Portable, introduced 1989.09.20. The nearly 16 lb. behemoth was innovative but not a smashing success.
- February 12 in LEM history: 99: $4,320 for a 'free' iMac - 01: 10 Commandments of Macintosh - High-end word processing for free - 02: 8 OS X gotchas - Working less with my Mac than with my PC - Microsoft Office v. X - 03: New Zealand's Mac mag - 04: Nothing else is a Mac - 07: On Mighty Toaster Wings - Jobs stirs up DRM hornet's nest - OS X 10.2 best for Classic? - 08: Too much software choice is not a blessing - A month with Windows
- Support Low End Mac
Recent Content on Low End Mac
- Fix Home Button Delay, Tablet the Ultimate Mobile PC, iPad Notebook a Possibility, and More, iOS News Review, 2012.02.10. Also using your iPad at work, two photo editors, a new iPad text editor, Macally's magnetic iPad 2 stand, and more.
- White MacBook Goes End-of-Life, Logitech Touch Mouse Supports Gestures, Firmware Updates, and More, The 'Book Review, 2012.02.10. Also MacBook Air better than any Ultrabook, docks for MacBook Pro models, Intel offers improved SSDs, and more.
- Mac and iOS Browsers: Options Galore, Freeware Forum, 2012.02.10. Safari is adequate on Mac and great on iOS, but the range of good alternatives is stunning. LEM writers share their favorites.
- Apple's Support Lead Shipping, Smartphones Outsell PCs, OS X Ported to ARM by Intern, and More, Mac News Review, 2012.02.10. Also the power of Tex-Edit Plus, Google and Twitter are already censoring the Web, Snow Leopard Security Update, and more.
- LogMeIn: Remote Screen Sharing for the Rest of Us, Alan Zisman, Zis Mac, 2012.02.09. Configuring the Mac's built-in screen sharing to work over the Internet can be difficult or impossible. LogMeIn makes it easy.
- 15 Years Ago Motorola Unveiled the PowerPC G3, Low End Mac Round Table, 2012.02.06. The G3 processor was optimized for real world Mac software and made a big leap forward in efficiency.
- Don't Kill Caps Lock, Learning to Love the iOS Keyboard, and an Adaptive iPad Keyboard, Charles W. Moore, Miscellaneous Ramblings, 2012.02.06. The Caps Lock key has a useful function, the iPad's keyboard really is useful, and checking out an adaptive keyboard for the iPad.
- More links in our archive.
Recent Deals
- Best MacBook Air Deals
- Best iBook G4 Deals
- Best iPad Deals
- Best Classic Mac OS Deals
- Best Apple TV Deals
- Best 15" MacBook Pro Deals
- Best Power Mac G4 Deals
- Best Mac OS X 10.6 Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct
from Strider Software.
Don't install Parallels to play poker online! Poker Mac will show you how to download and install a native Mac poker and Mac Casino applications in minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
DealMac
Deal Brothers
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The Apple Store
The iTunes Store
PC Connection Express
GainSaver
Parallels Desktop for Mac
eBay

