mark99
02-01-2005, 10:38 AM
Essentially I want to take the output I get from:
http://www.ispreview.co.uk/talk/external.php?type=js
..and stick it into a "JS.TXT" file, this simple thing would allow me to call the data much faster and update it using a CRON task. It should be simple enough to do, but the closest I can get is this (obviously won't work as you're only printing the option choice No.):
<?php
require_once('./global.php');
require_once('./includes/functions_external.php');
require_once('./external.php');
$result = $_REQUEST['type'] == 'JS';
$fp = fopen("js.txt", "w");
fwrite($fp, $result);
fclose($fp);
?>
http://www.ispreview.co.uk/talk/external.php?type=js
..and stick it into a "JS.TXT" file, this simple thing would allow me to call the data much faster and update it using a CRON task. It should be simple enough to do, but the closest I can get is this (obviously won't work as you're only printing the option choice No.):
<?php
require_once('./global.php');
require_once('./includes/functions_external.php');
require_once('./external.php');
$result = $_REQUEST['type'] == 'JS';
$fp = fopen("js.txt", "w");
fwrite($fp, $result);
fclose($fp);
?>