[PHP-DEV] PHP 4.0 Bug #3430: skript passes its source code to variable From: petr.husak <email protected>
Date: 02/08/00

From: petr.husak <email protected>
Operating system: hpux 10.20
PHP version: 4.0 Beta 3
PHP Bug Type: Scripting Engine problem
Bug description: skript passes its source code to variable

Skript below has this result:

printer lanmt18 now printing lanmt18-9274. enabled since Nov 11 10:41 fence priority : 0
0 :sthru("lpstat
-planmt18"); $view
=
explode("
",$result); for($i=0;
$i $i++){

echo
"$view[$i]"
.
"
\n"; }

?>

************************************************************
And this is the skript:
<?php
        $result = passthru("lpstat -planmt18");
        $view = explode(" ",$result);

        for($i=0; $i<sizeof($view); $i++){
            echo "$view[$i]" . "<br>\n";
        }
?>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>