Hi,
A PHP question from a PHP beginner..
I was wondering if its possible to retreive information from a webstite (text), and put this in a variable in PHP.
So for example brwosing to the site :
http://www.testsite.com/getdata.asp?value=1
(just a fake url to explain things)
will put some plain text on your screen.
I am actually trying to get some specific information from this text. So the text output for this site could be something like:
{variable text}
..
..
..
<FIXED TEXT> <DAYHHMMSS> <DATA>
..
..
..
The information I am after is in the <DATA> part and has a fixed length of 5 characters.
This data consists of 2 values put together as one number of 5 characters, for example 21010.
in this case 210 is a part and 10 is a part (or an other example 09005 = 090 and 05)
With these two values I need to do some calculations.
On top of this all, the variable part of the website [ getdata.asp?value=1 ] value=1 can have other values to retreive other sets of information. I need to retreive the page a couple of times with different "?value=" values...
A lot of questions, maybe there is someone that could give me a start..
thanks!
Martin