One of my customers has an insane amount of PDF and Microsoft Word DOC files on their website. It’s core to their online services so it’s not as though they’re garbage files up on the server. My customer wanted their website’s search engine (Sphider) to read these PDF files and DOC files so that their clients could get at the documents they needed without going through a bunch of summary pages to get them. I was successful in the task, so let me show you how to read PDF and DOC files using PHP.
Shell Archives
Read PDF and Word DOC Files Using PHP

Using Cygwin’s dig To Retrieve DNS Records
One of the most difficult parts of my job is managing DNS settings. It’s not that DNS is a particularly difficult thing to manage, but it’s somewhat foreign to me because they don’t teach it in school and there are huge consequences for messing things up. Not only can a business’ website be down, but their email as well. Whenever I need to retrieve DNS records from a nameserver, I use Cygwin and dig.
For this example, we’ll pretend that we need to retrieve the MX records for the davidwalsh.name domain. Here’s the format of how you use dig:

Download A File Using Cygwin and wget
Using Cygwin’s cURL package isn’t the only way to download a file. You can also use Cygwin’s wget command to download any URL.
The Bash Script
wget http://davidwalsh.name/ -O davidwalsh.name.txt
I’m guessing that wget and cURL aren’t the only ways to download a file, but these are two easy ways to do so.
Also, look forward to more posts featuring wget — it has a plethora of uses!
Feeds & Profiles
Sponsors
Advertise with DavidWalsh.Name
Site Search
Discussion Topics
Script & Style
How to Make a Descriptive Menu Using CSS Lists
Easy Image or Content Slider (jQuery plugin)
The Perfect Document Overlay
The Best CSS Design of 2008
Semantics in HTML 5
Create a Shoutbox Using PHP and AJAX (with jQuery)
Repulsive Force in Javascript with Mootols Draggables
WordPress Tutorial: Category Trick for WP 2.7
Why You Should Consider Releasing Code
jQuery Image Gallery








