Passthru Question

From: Date: Thu, 22 Mar 2001 07:00:20 +0000
Subject: Passthru Question
Groups: php.general 
Request: Send a blank email to php-general+get-45076@lists.php.net to get a copy of this message
Hi all, Having a weird problem running the passthru() function on quite an old version of PHP3 (3.0.7). Pasted below is the php source code: =============================== <HTML> <HEAD> <TITLE>Tape Status Check</TITLE> </HEAD> <BODY> if this page is blank - that is good! <? passthru ('/usr/bin/mt rewind',$res); echo $res; ?> =============================== When I run this in a shell (as the apache user as well!) it works perfectly as illustrated below: =============================== su-2.03$ /usr/local/bin/php index.php3 Content-type: text/html <HTML> <HEAD> <TITLE>Tape Status Check</TITLE> </HEAD> <BODY> if this page is blank - that is good! mt: /dev/nrsa0: Device not configured =============================== When I run this in apache by accessing the URL, I get (pasted HTML from view-source): =============================== <HTML> <HEAD> <TITLE>Tape Status Check</TITLE> </HEAD> <BODY> if this page is blank - that is good! 1 =============================== As you can see, its not outputting the passthru output stuff. Any ideas? Mike

« previous php.general (#45076) next »