Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #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
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 01:27.

Layout Options | Width: Wide Color: