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
Post a Comment