GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 15-Jul-2007, 09:20
Richardknox Richardknox is offline
Junior Member
 
Join Date: Nov 2006
Location: Michigan
Posts: 83
Richardknox is on a distinguished road

How to isolate a piece of information


Hello,

I provide weather information for the webcams that I show on my website. I want to be able to strip out certain pieces of information to use elsewhere from the code used to display the Weather information.

Here is a small piece of the code for the weather information I use.
ex:

PHP Code:

style="padding-left: 10px;"><a href="http://www.wunderground.com/history/airport/KHAO/1972/1/1/PlannerHistory.html?bannertypeclick=htmlSticker">Plan your trip</a></div><div style="padding-left: 10px;"><a href="http://www.wunderground.com/radar/radblast.asp?ID=ILN®ion=b4&lat=39.41976166&lon=-84.49542236">Local Radar</a></div><div style="padding-left: 10px;"><a href="http://www.wunderground.com/US/OH/Hamilton.html? 



I want to be able to isolate the "ILN", for the ID information.

I also want to be able to strip out the lat & long information, but I figure once I know how to isolate the ID, the lat and long should be the same.

Thanks,

Richard
http://www.thewebcamsite.net
  #2  
Old 02-Aug-2007, 12:15
Cardfellow Cardfellow is offline
New Member
 
Join Date: Aug 2007
Posts: 1
Cardfellow is on a distinguished road

Re: How to isolate a piece of information


The process is simple using preg_match but the regexp needed to extract the info from a complex URL like that is a little beyond my regular expression abilities.
 
 

Recent GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help : error C2065: 'information' : undeclared identifier Taichichuan C Programming Language 3 23-Jan-2007 13:43
Compiled program does not execute Serpentine MS Visual C++ / MFC Forum 1 23-Jan-2007 09:41
Computer privacy article crystalattice Open Discussion Forum 0 01-Oct-2004 14:26

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:21.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.