View Single Post
  #1  
Old 01 Feb 2005, 11:38
mark99 mark99 is offline
 
Join Date: Oct 2002
Save EXTERNAL JS To TEXT File

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);
?>
Reply With Quote