php - How do I get just the name of the image file in string from this code -


i have name of file string.

using code:

<?php   $target = "upload/";  $name="chekcs"; $target = $target . basename( $_files['uploaded']['name'].$name);   if(move_uploaded_file($_files['uploaded']['tmp_name'], $target))  { echo "yes"; }  else { echo "no"; } ?>  

uploaded file im uploading.

i need name. string.

how can that?

thanks assistance!

returns original filename:

$_files['uploaded']['name'] 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -