Answers for "how to get file upload name php"

PHP
4

php current file name

basename(__FILE__, '.php');
Posted by: Guest on March-06-2020
0

php get filename

<?php
    $xmlFile = pathinfo('/usr/admin/config/test.xml');

    function filePathParts($arg1) {
        echo $arg1['dirname'], "n";
        echo $arg1['basename'], "n";
        echo $arg1['extension'], "n";
        echo $arg1['filename'], "n";
    }

    filePathParts($xmlFile);
?>
Posted by: Guest on December-11-2021

Browse Popular Code Answers by Language