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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-11-2004, 01:59 AM   #1
European Lee
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
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-11-2004, 02:25 AM   #2
com
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]
com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-11-2004, 02:33 AM   #3
SilverTab
Confirmed User
 
Join Date: Nov 2001
Location: MTL
Posts: 5,060
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)
__________________
mmm my sig was too big... no more cool animation
but hey still! need php? ICQ: 94586959
SilverTab is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-11-2004, 05:45 AM   #4
Robx
Confirmed User
 
Join Date: Nov 2004
Location: The middle of nowhere
Posts: 357
agreed....
regex
Robx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.