Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 89
5 members and 84 guests
deempm7rhunting, fig6cihtdnpk2is, pri6qntabledikg, slngpolye, smaaopllbusines
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - General

Reply
 
LinkBack Thread Tools Display Modes
replacing & with &
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 1
Join Date: Jun 2005
replacing & with & - 07-01-2005, 03:00 AM

I am using the following bit of code to scrape and display some information:

foreach ($matches[0] as $match) {
// First, get title
preg_match ("/<a([^`]*?)</", $match, $temp);

$title = $temp['1'];
$title = strip_tags($title);
$title = trim($title);

echo "<item>\n";
echo "\t\t\t<title>" . strip_tags($title) . "</title>\n";
echo "\t\t\t<content:encoded><![CDATA[ \n";
echo $text . "\n";
echo " ]]></content:encoded>\n";
echo "\t\t\t<dc:creator>" . strip_tags($author) . "</dc:creator>\n";
echo "\t\t</item>\n";

The section in bold is what I need to mine out:

height="80"></a></td>
<td class="productListing-data">300-10303</td>
<td class="productListing-data">Kingavon Pro User 720W 2 Stroke Generator

But I am getting the following error:

A semi colon character was expected. Error processing resource 'http://www.ratemybuilder.co.uk/scrape.php'. Line 17, Posit...

<title>href="http://dropshiponline.co.uk/product_info.php?cPath=46_99&products_id=362&osCsi d=d3780c195b6c62...

I believe that it is because of the & in the URL. How do I remove?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
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
Replacing jpg logo with flash logo? fourtytwo Site design 1 08-08-2005 07:36 AM
3 questions about newsletter,subcription and replacing.. silence_gr Nuke 7.x - General 0 11-29-2004 02:40 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31