![]() |
Quick Php Question - Is It Possible To Define..
Two constants and have a php script that will pull and and all information defined within those two constants then, display that information on another site?
For example, lets say we have a link list and want to pull all urls that are held between the <a href=" and the "> tags and have them written to a flat text file. In this instance we would set the two constants in the script as.. 1) <a href=" 2) "> which then takes all the urls and places them one per line on links.html Im thinking its possible using the LP::Fetch module? {or whatever its called} Does that make sense? Regards, Lee |
just off the top of my head, i would use a regex to parse your choice method of polling the posted html. write the output to your flat file.
|
Quote:
yup! a simple regex will do it...works wonder to parse simple things like that..(or even complex things) |
agreed....
regex |
All times are GMT -7. The time now is 07:39 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123