Saturday 15 May 2010

Pulling specific data from php file -


Basically, I have pulled the text from a URL and need to find a way to draw specific characters from the text.

The line I should be drawn from is:

  & lt; P align = "center" & gt; & Lt; A href = "http://sitexplosion.com/?rid= 1256" target = "_blank" & gt; Http: //sitexplosion.com/? Redeem = 1256 & lt; / A & gt; & Lt; / P & gt;   

The text I need to draw is essentially the number 1256, basically everything else? Rid = and "target =" _ blank ">

This number will change and

If something like that has already been posted, I am sorry. Trying to find an answer for 3 hours.

If you can show me how to drag those characters from that line, then I'm already going.

Thanks in advance!

How about: -

 < Code> $ strout = "& lt; P align = 'center' & gt; & Lt; A href = 'http: //sitexplosion.com/?ref= 1256' Goal = '_ blank' & gt; Http: //sitexplosion.com/?ref= 1256 & lt; / A & gt; & Lt; / P & gt; "; $ Starts = strokes ($ strout," redemption ") + strlen (" redemption = "); $ ends = strokes ($ strout," {\ 'target} ", starts $); $ Results = Substitutes ($ Straw, $ starts, $ (ends $ -3) - $ starts); Echo results;   

Output: - < P>  Enter image details here

No comments:

Post a Comment