![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Aug 2003
Location: Portland, Oregon
Posts: 4,541
|
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.
__________________
Real. Professional. Hosting. .:Expect Nothing Less:. 320-078-843 :: www.realprohosting.com :: [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Nov 2001
Location: MTL
Posts: 5,060
|
Quote:
yup! a simple regex will do it...works wonder to parse simple things like that..(or even complex things)
__________________
mmm my sig was too big... no more cool animation ![]() but hey still! need php? ICQ: 94586959 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2004
Location: The middle of nowhere
Posts: 357
|
agreed....
regex |
![]() |
![]() ![]() ![]() ![]() ![]() |