6:04am PT, Wednesday Mar 17

Category

Archive for the '' Category

How to get a file extension - Arnold Daniels

How to get a file extension in PHP:
$ext = pathinfo($file_name, PATHINFO_EXTENSION);
How to get a file extension in Perl:
my $ext = ($file_name =~ m/[^.]+$/)[0];
How to get a file extension in Ruby:
ext = File.extname(file_name)
How to get a file extension in Bash:
ext=${file_name#*.}
name=${file_name%.*}
How to get a file extension in Python (thanks to Jensen):
import os
ext = os.path.splitext(file_name)[1]

Got more? Please post […]

Popularity: unranked [?]

MySQL agrees: Getting XML from a DB is easiest with my lib ;) - Arnold Daniels


Popularity: unranked [?]

DZone piped RSS - Arnold Daniels


Popularity: unranked [?]

How I PHP: The Output Handler - Arnold Daniels


Popularity: unranked [?]

Arnold Daniels’ Blog: Improve performace: check your loops


Popularity: unranked [?]

I’ve accidentally spammed planet php - Arnold Daniels


Popularity: unranked [?]

Authentication without sessions in PHP - Arnold Daniels


Popularity: unranked [?]

GPL and Javascript - Arnold Daniels


Popularity: unranked [?]

Submit a form with AJAX using TelePort - Arnold Daniels


Popularity: unranked [?]

How I PHP: Exceptions with Interfaces - Arnold Daniels


Popularity: unranked [?]