PHP doesn't work with shell_exec(), system() or passthru()
问题 I am trying to read the most recent file from the folder. After finding the latest file, I'm reading it line by line and printing it on the barcode printer using barcode Overprinter software. This barcode printer is the default printer on my server. Here is my PHP code: <?php $files = glob('C:\barcode\*.*'); $files = array_combine($files, array_map('filectime', $files)); arsort($files); echo key($files); // for testing $handle = @fopen(key($files), "r"); if ($handle) { while (($buffer = fgets