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





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to