Answers for "php get file in above path"

PHP
-1

php get file location

# C:UsersRedactedDesktopmain.php
include __DIR__ . DIRECTORY_SEPARATOR . 'include.php';
echoScriptPath();

# C:UsersRedactedDesktopinclude.php
function echoScriptPath() {
    list($scriptPath) = get_included_files();
    echo 'The script being executed is ' . $scriptPath;
}
Posted by: Guest on June-19-2020
0

how to get full path of uploaded file in php

<script>
  var file=document.getElementById('IdOfFileInputControl').value
  alert(file)
</script>
Posted by: Guest on April-08-2021

Browse Popular Code Answers by Language