header("Content-Type: text/Calendar"); //header("Content-Type: text/text\n\n"); $eid = $_REQUEST['eid']; $handle = fopen("http://gconline.goshen.edu/public/prod/eventcal/bin/displayDetail.php3?eid=". $eid ."&dTemplate=ical", "r"); //print "
"; //$handle = fopen("https://www.goshen.edu/~dougms/more.txt", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); //For ics format, need to strip out all the empty lines that //we never worry about with html content. if (strlen($buffer)>5){ echo $buffer; } } fclose($handle); } //print ""; ?>