Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 2 of 2

Thread: Help with PHP

  1. #1
    DNF Addict
    Zoobar's Avatar
    Join Date
    Jul 2002
    Posts
    2,857
    DNF$
    1,982
    Bank
    0
    Total DNF$
    1,982
    Donate  

    Help with PHP

    I'm trying to parse info from a remote site but my script isn't grabbing everything it should. My script grabs info between certain specific html tags. The script is not picking up the paired tags when they are split on two line.

    eg.

    <tag>grabs this ok</tag><tag>grabs this ok</tag><t
    ag>does not grab this</tag>

    Can anyone help me out?

    Thanks.

  2. #2
    Amms.com
    tristanperry's Avatar
    Join Date
    Jan 2007
    Location
    Wales, UK
    Posts
    1,684
    DNF$
    1,193
    Bank
    0
    Total DNF$
    1,193
    Donate  

    Re: Help with PHP

    Hmm... odd. Maybe try removing the line breaks or something? E.g.:

    $string = preg_replace("\r\n","",$string);

    Not sure if that'd mess up other parts of the string - does the following work?

    $string = preg_replace("<t\r\nag>","<tag>",$string);

    - seeing as though "\r\n" is a line break, this should be the sort of solution you are looking for.

Similar Threads

  1. 14 Super PHP scripts, Ringtone site, and Photorating website!
    By NavySeals91 in forum DNF$ Sales/Domain Auctions
    Replies: 21
    Last Post: 07-06-2006, 07:09 PM
  2. Scripts 2 Sell Package on Auction
    By ForumsHelp in forum DNF$ Sales/Domain Auctions
    Replies: 15
    Last Post: 08-17-2005, 11:00 AM
  3. Beware of PHP! (& other ones :P )
    By PolurNET.com in forum Humor
    Replies: 13
    Last Post: 11-13-2004, 07:07 PM
  4. a nice one: mysqlphp.com
    By in forum Domain Name Appraisal Discussion
    Replies: 2
    Last Post: 04-27-2002, 04:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com