I'm trying to get the path of a file.
There's my code :
$htmlcode = '<input type="file" id="fileinput" placeholder="Recherche QR Code" title="Recherche à partir d\'un fichier .txt" />';
$path = "";
getTabQrCode($path);
function getTabQrCode($path){
$tab_qr = Array();
$index = 0;
$file_handle = fopen($path, "r");
while (!feof($file_handle) ) {
$line_of_text = fgets($file_handle);
$parts = explode('=', $line_of_text);
print $parts[0] . $parts[1]. "<BR>";
$tab_qr[$index] = $parts[0];
$index++;
}
$index = 0;
fclose($file_handle);
}
echo $htmlcode;
I want $path to take the value of the path of the file uploaded... Is it possible ?