[PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread James Holloway
Hi all, I'm attempting to write a weather script, which will display weather conditions for areas in the UK. I have the data I need, which is stored in a file on another server. The data comes in the format: 2001/01/16 13:50 SCT010 BKNDPIP WYXWE Q1012 2001/01/16 13:46 CYGL 161346Z 34004

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread Glen Scott
James, The trouble is, that there are about 3000 cities in the text file. I'm >assuming that I fill use fopen(); and fread(); to open and read the files, >but does anyone know of a way of singling out one line (say: > >CYGL 161346Z 34004KT 15SM -SN BKN011 BKN030 RMK SF6SC1 > >) from the whole te

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread James Holloway
Glen Scott <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > James, > > The trouble is, that there are about 3000 cities in the text file. I'm > >assuming that I fill use fopen(); and fread(); to open and read the files, > >but does anyone know of a way of singl

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread Pavel Kalian
Re: [PHP] Reading specific data from a .txt file into PHP > > Glen Scott <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > James, > > > > The trouble is, that there are about 3000 cities in the text file. I'm &g

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread Romulo Roberto Pereira
of times per day and etc, that you can show to your users. Have fun, Rom - Original Message - From: Glen Scott <[EMAIL PROTECTED]> To: James Holloway <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 10:15 AM Subject: Re: [PHP] Reading specific dat