Advertisement
droidus

Untitled

Aug 17th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. $removeChars = array(" ", "_");
  2.                 $stringLen = strlen($_FILES["file"]["name"]);
  3.                 for ($i; $i<$stringLen; ++$i) {
  4.                     if ($_FILES["file"]["name"][$i] == " ") {
  5.                         $_FILES["file"]["name"][$i] = str_replace($removeChars, "", $_FILES["file"]["name"][$i]);
  6.                     }
  7.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement