Download Resumes
Downloadable versions of what you have seen at my site. Just "Right Click" and "Save Target As…" Thank you for visiting. And if you have any questions please feel free to drop me an email.
Resume
Word
RTF
Last Updated
About the Download Page
On this page, what I am NOT doing is actually changing the page every time I put a new resume on my server. I suppose I could always name my resume the same and replace the older resume with the newer one and I still would not have to change the page. Even the text you are reading now is in a seperate file that goes though a similar process.
I am a packrat and I like to keep older versions of my resumes just in case. I don't have any type of versioning system for document retention at home or running on my server. So each resume, therefore, has the date in the name of the YYYYMMDD.
This page will display the latest resume thusly:
- Read contents of directory
- If the file name matches my search such as substr_count($file, $pattern). There may be better ways to do this, including preg_match but this works. substr_count will count the number of occurrences a piece of text exists within my resume names. If the count is greater than zero we have a match. I also use the function strtolower in the comparison. This will make sure I am comparing lower case to lower case. What I am looking for, in the case of my QA resume is 'QA' and 'rtf'. This will get the QA RTF (Rich Text Format) file.
- Place the matched name in an array.
- Sort the array by name. This will put the most resent name at the top. The date being a part of the file name which moves the most recent to the top.
- I don't need all the file so I only take the most resent out of the array using array_pop. This will grab the top most file name and I place that in a variable for processing.
- I now take that filename and get some information about it. This new information is put into an array for display on this page. Using an array allows me to pass a single piece of data back to this page.
-
- The file name. I loop that back into an array.
- The file size. I don't know. It just seemed like a good thing to tell the user.
- The Date. Remember the YYYYMMDD? I use a substr to get the date off the file. Because the date is at the end of the name I know its exact location working from the end of the filename. This coupled with the switch, I convert the date from something like 20070205 to February 05, 2007.
- All this is passed to the page for display. I parse the array into variables which are then placed on the correct location on the page.
The only thing that I don't like is that I am making a directory read for each file I am looking for. As of this writing that is 4 directory reads. Not too bad for a small directory. But if I had a directory of hundreds of files, the IO cost may become too great. I will have to think about this and maybe make all my code a little more efficient.