vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=75542

Save EXTERNAL JS To TEXT File
by mark99
01 Feb 2005 11:38

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.):

Quote:

<?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);
?>


All times are GMT. The time now is 17:47.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.