DNforum.com - Domain Sales, Domain Forum, Domain Appraisals
 
Register Now! Welcome to Dnforum.com 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 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 and simple so please, join our community today! If you have any problems with the registration process or your account login, please contact us.
Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Coding/Programming/Languages
Start your Domain Reseller Business Today and Earn Money!
Reply
 
LinkBack Thread Tools Display Modes
Old 06-01-2007, 03:24 PM   #1 (permalink)
DNF Addict
 
Zoobar's Avatar
 
Last Online: Today 12:13 AM
iTrader: (46)
Join Date: Jul 2002
Posts: 2,533
DNF$: 508
Country:


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.
Zoobar is online now   Reply With Quote
Old 06-01-2007, 04:38 PM   #2 (permalink)
[On holiday]
 
tristanperry's Avatar
 
Name: Tristan
Last Online: Yesterday 07:04 PM
iTrader: (42)
Join Date: Jan 2007
Posts: 1,118
DNF$: 3,338
Location: Wales, UK
Country:


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.
__________________
The Legion Host - quality hosting at low prices

On holiday from 28th June - 7th July
tristanperry is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 12:42 AM.
Copyright @2001-2008 DNForum.com

Learn Domains
Promote Domains
Research Domains
Buy Domains
Resell Domains
Park Domains
Sell Domains
Build Domains
Host Domains
Trademark Domains
Domain Domains
manage Domains
Appraise Domains