Quick Php Question - Is It Possible To Define..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • European Lee
    Confirmed User
    • Dec 2002
    • 7133

    #1

    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
    YOUR TRAFFIC IS SAFE WITH US - CONDOM CASH
    PUTTING THE GAY ADULT INDUSTRY ON YOUR PC!!
    AFFORDABLE 2257 COMPLIANT GAY + BI CONTENT
  • com
    Confirmed User
    • Aug 2003
    • 4541

    #2
    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]

    Comment

    • SilverTab
      Confirmed User
      • Nov 2001
      • 5060

      #3
      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

      Comment

      • Robx
        Confirmed User
        • Nov 2004
        • 357

        #4
        agreed....
        regex

        Contact Us About Getting Your Paysites Exposed To Millions Of People On The Peer To Peer Networks!
        ICQ 124-249-781

        Comment

        Working...