skip to Main Content

Php – Silent print different shell_exec vs. manual command line

I would like to automatically print labels locally via a website using silent print. My PHP script running with XAMPP on Windows. <?php ob_end_clean(); ignore_user_abort(); ob_start(); header("Connection: close"); header("Content-Length: " . ob_get_length()); header("Access-Control-Allow-Credentials: true"); header("Access-Control-Allow-Origin: https://xxx"); ob_end_flush(); flush(); $target =…

VIEW QUESTION

Can’t read system call output in PHP?

I'm trying to read the hash of a torrent file, so I'm using a simple program called torrenttools. When I run this php file on my localhost: <html> <head> <?php ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); error_reporting(E_ALL); $torrenthash = shell_exec ("./torrenttools info…

VIEW QUESTION
Back To Top
Search