Fork me on GitHub

Tag: file

Tag Archives: file

A simple way to limit file downloads to only logged in users in WordPress

So, you’ve used WordPress to build your client’s site and to provide downloads for the site’s users. You’re hiding the links to download content based on the user’s logged in status. Great. But what happens when the logged in user copies the download URL and sends it to his friend? Well, unless you’re filtering the […]

July 1, 2010 | Web Design & Development, WordPress | 40 comments

WordPress TextMate Bundle updates

There’s been a few updates to the WordPress TextMate Bundle recently. Function Definitions:Use the keyboard shortcut Command-Shift-H while the cursor is within or highlighting a WordPress function to bring up a tooltip that contains the current function’s usage and path to the file that defines the function. Goto Function: Included is functionality for defining the […]

December 6, 2009 | Web Design & Development | 1 comment

Simple, but handy .htaccess tricks

These two have always been questions in my mind but until recently I’ve never had the need to actually put time in to satisfying my curiosity and as I look around I haven’t (easily) found any real world examples of these out there. So, we all know how to set up basic HTTP authentication, right? […]

July 10, 2009 | Code, Computers | 8 comments

File upload class – it is fixed!

After a long time of knowing there was an issue with the script I finally got around to checking it out. Its a little embarrassing to say, but, here’s the dish: I wrote all the functionality to check the file type, but forgot to actually implement it… oops. The file is correct now, so to […]

August 30, 2007 | PHP Scripting | Comments Off on File upload class – it is fixed!

Classes for file uploading in PHP

Surprisingly, I still get a lot of referrals from The Stickman for his work on a multi-file javascript upload helper on which I briefly assisted on Safari compatibility. The script adds and removes file upload form elements as requested by the user. So a form can be designed to handle as many uploads as you’d […]

December 22, 2006 | PHP Scripting | 45 comments

Convert file size denominations in PHP

Convert a file size from one measure to another. For example, take a file that is recorded as 512KB and have it converted to .5MB. Yeah, that’s an easy example, but that’s ’cause I was writing it off the top of my head. So, if you need this sort of thing, here’s a function that […]

December 20, 2006 | PHP Scripting | Comments Off on Convert file size denominations in PHP

Ok, NOW I’m pissed at the OS X Finder

As of late I’ve defended the basic operation of the finder as being adequate and have promoted the use of Spotlight wherever possible to get things done. However, sometimes you just can’t get around having to work in the finder when creating and managing files from other people. Tonight I hit what I consider a […]

September 7, 2006 | Computers | 1 comment

Speedy and Secure AFP

One of my long time complaints about using AFP (Apple Filing Protocol) has been its speed and my inability to get a secure connection. Well, all that changed this morning as I found some hints that fixed both speed and security issues. And it was under my nose the whole time…

June 30, 2006 | Computers | 4 comments