<html> <head> <title>Example</title> </head> <body> <?php $myfiles = "http://finance.yahoo.com/q?s=msft&d=v1"; $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; $name2 = ""; while (!feof($datei)) { $name = fgets($datei, 1); if ($name == "<") { while($name = fgets($datei, 1) != ">" && !feof($datei)) {} print(" "); } print("$name"); } } print("$name2"); //print("$stock"); //fscanf($fp, "%s", $name); ?> </body> </html>