next up previous contents
Next: stocks.phtml Up: Code Previous: website.phtml   Contents

php.phtml

<html>
    <head>
        <title>Example</title>
    </head>
    <body>

<?php 

$myfiles = $myfiles.rawurlencode($stadt);

$datei = fsockopen("bigbrother.tjhsst.edu", 8002, &$errno, &$errstr);
if( !$datei )
{
echo "proxy not available !";
fclose($resultfile);
exit();
} else {
fputs($datei,"GET $myfiles/ HTTP/1.0\n\n");
 $stock;
while (!feof($datei))
{
  $name = fgets($datei, 500000);
  //  $num = strpos("MSFT", $name);
  // $num2 = strpos("Chart", $name);
  //$stock = 
  print("$name");
}
}
//print("$stock");

//fscanf($fp, "%s", $name);
?>

    </body>
</html>



Charles Vu 2003-06-12