Skip to content

Instantly share code, notes, and snippets.

@riix
Created January 4, 2013 05:23
Show Gist options
  • Save riix/4450166 to your computer and use it in GitHub Desktop.
Save riix/4450166 to your computer and use it in GitHub Desktop.
base64 Encode
$filename = $_FILES['upload']['name'];
$filename = preg_replace("/([가-힣]+)/ise", 'base64_encode(\'$1\')', $filename);
$filename = str_replace(' ','', $filename);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment