Quick post, more as a reference for myself, of how to get the extension of a file using PHP.
Discovered a great post on Cowburn.info outlining the various ways to do this and the time implications, ending up with:
$filename = 'mypic.gif';
$ext = pathinfo($filename, PATHINFO_EXTENSION);
being the best option. Continue reading “Getting File Extension Using PHP”
After developing and testing a mobile view for a site, I uploaded it to the live server and gave it a quick test. Loading it up on my iPhone the mobile view loaded as expected, but none of the jQuery features were working, as if the jQuery file hadn’t been uploaded. Continue reading “Mobile Safari jQuery Error”
Having to add a new form to an old Modx Evo site threw up a bug with the eForm add on today, when submitting the form I was constantly told I had an ‘Invalid Data Error’ on my dropdown field. Continue reading “Modx Evo eForm Throws Constant Validation Error On Select Options Created Using Snippet”