Finding Extensions in PHP without Reading the Mime Type

For all you geeks, finding an extension, cross platform, because application/type doesn’t always work with $_FILES['file']['type'] cross platform.

(continue reading…)


Restricting an input field to only numbers with preg_match_all() (PHP)

This is a pretty easy way to restrict a field to only numbers.
The \D in the preg match is short for [^0-9], which will match all characters, except 0-9.
I’m new to the regex, so there might be a better way to do this. But this works for me.

(continue reading…)


How to install your Linksys WMP110 wireless card on linux

I run Ubuntu, but I imaging it would probably be the same for most distributions.
Install ndiswrapper, use your repos package search. On Ubuntu it is already installed.

(continue reading…)


  • My Foursquare Badges
       
       
       
       
       
       
      
    Powered by My Foursquare
     
  • Copyright © 1996-2010 My Blog. All rights reserved.
    Jarrah theme by Templates Next | Powered by WordPress