Genius Needed
Posted: Wed Feb 06, 2008 11:57 am
Hi
i have a php script that takes a url and loads all the code from that page into a variable.
I then want to scan through that variable and pick out the first 5 URLs. So i would need something which looks for the first 5 times that: \<a href=''http:// ----some url-----''> happens and store the occurances into different variables.
can anyone work it out? i'm very stuck
i have a php script that takes a url and loads all the code from that page into a variable.
I then want to scan through that variable and pick out the first 5 URLs. So i would need something which looks for the first 5 times that: \<a href=''http:// ----some url-----''> happens and store the occurances into different variables.
can anyone work it out? i'm very stuck