Re: extracting text from text file to be used in PHP
| From: | Jeff Harris | Date: | Sat, 14 Jun 2003 04:54:22 +0000 |
| Subject: | Re: extracting text from text file to be used in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151456@lists.php.net to get a copy of this message | ||
On Jun 13, 2003, "Lance Q" claimed that:
|Hello all,
|
|One of the sites I host is a radio station. Their computer has been setup to
|automagically upload the current song and the next song to their web site
|via FTP. Unfortunately, the format it comes in is pretty awful. (See below).
|<tag>
|The CURRENT CutID is: 70428
|The Type is: MUS
|The ArtistName is: Nena
|The SongTitle is: 99 Luft Balloons (German)
|The Duration is: 00:03:48
|</tag>
|
|What I would like to know how to do is extract the relevant info (everything
|after the : for instance) and manipulate it, possibly as a variable so that
|$ArtistName=Nena for instance.
http://us3.php.net/manual/en/function.explode.php
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc |
gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.