GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Quick Php Question - Is It Possible To Define.. (https://gfy.com/showthread.php?t=401178)

European Lee 12-11-2004 01:59 AM

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

com 12-11-2004 02:25 AM

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.

SilverTab 12-11-2004 02:33 AM

Quote:

Originally posted by com
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.

yup! a simple regex will do it...works wonder to parse simple things like that..(or even complex things)

Robx 12-11-2004 05:45 AM

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