How to change Filename in URL
<p>I have two field in database "FileName" and "UrlFileName",so I sanitize "FileName" from Invalid character to have a new file Name for example "FinaleFileName",so my question is I need a simple code or function to change the name of file in URL too before stored my both field in DB,for example : </p>

<pre><code>$FileName = "NaMeoFImagE-10.jpeg"
$UrlFileName = "uploads/pics/NaMeoFImagE-10.jpeg"
....
//I had created a function to remove or replace a invalid character //Ok

$FinaleFileName= nameofimage-10.jpeg

.....

A function to replace a File name in URL // Not OK

$FinaleUrlFileName = "uploads/pics/nameofimage-10.jpeg"// Im looking for this result 
</code></pre>

<p>Any Idea?</p>
