Hi,
I've made my own vB-powered custom page and also have this script but I'd like it to display the output on this page.
The script is
PHP Code:
<?php
header('Content-type: text/plain');
$fp = fsockopen("nyder.davros.org", 4472, $errno, $errstr, 10);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "-\r\n";
$out .= $_GET['origin']."\r\n";
$out .= $_GET['destin']."\r\n\r\n";
fwrite($fp, $out);
$i=0;
while (!feof($fp)) {
$line[$i] = str_replace(array("\n","\r"),'',fgets($fp, 128));
$i++;
}
fclose($fp);
}
foreach($line as $value) { print $value."\n"; }
?>
And you can see the output at:
http://www.railforums.co.uk/core.php...t=Submit+Query which is plain, is it possible to get this output to display in my custom page?