Using popen() to Pass Data to the column Application : System Command : Development PHP Source Code


PHP Source Code » Development » System Command »

 

Using popen() to Pass Data to the column Application



<html>
<head>
<title>Using popen() to pass data to the column command</title>
</head>
<body>
<?php
$products = array(array"A"2"red" ),
                  array"B"3"blue" ),
                  array"C"1"pink"  ),
                  array"D"1"orange"   )
);
$ph = popen"column -tc 3 -s / > data.txt""w" )  or die"Couldn't open connection to 'column' command" );
foreach $products as $prod )
    fputs$ph, join('/', $prod)."n");
pclose$ph );
?>
</table>
</body>
</html>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Development
» System Command