XML_RSS bug/usage error?
| From: | Darren Ehlers | Date: | Thu, 04 Aug 2005 16:41:07 +0000 |
| Subject: | XML_RSS bug/usage error? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20276@lists.php.net to get a copy of this message | ||
I've got a problem when using the XML_RSS package. It appears to be
stripping the ampersands in the resulting URL links.
For example:
require_once ('Extras/XML/RSS.php');
$rss =& new
XML_RSS("http://www.microsite.reuters.com/rss/worldNews");
$rss->parse();
foreach ($rss->getItems() as $item)
{
$news .= '<a class="top_ticker" target="_blank"
href="'.$item['link'].'">"'.$item['title'].'</a>';
}
The $item['link'] is missing the ampersands.
Any ideas? Or what I may be doing wrong?
Darren Ehlers
EhlersConsulting.net
> -----Original Message-----
> From: Steve Clay [mailto:steve@mrclay.org]
> Sent: Friday, June 17, 2005 9:55 AM
> To: PEAR general
> Subject: Re[4]: [PEAR] DB_DataObject_FormBuilder can't be created
>
>
> Friday, June 17, 2005, 9:29:25 AM, Justin Patrin wrote:
> > What's your error reporting set to?
>
> using error_reporting (E_ALL); Apache shows no error,
> Windows shows no
> error, but PHP is completely dying, no commands after
> $fg =& DB_DataObject_FormBuilder::create($do);
> do /anything/.
>
> In desperation, I'm pasting the source:
>
> ------------------------------------------------
>
> define('DB_DATAOBJECT_NO_OVERLOAD', 1);
> require_once "DB/DataObject.php";
> $config = parse_ini_file('DataObject_class.ini',TRUE);
> foreach($config as $class=>$values) {
> $options = &PEAR::getStaticProperty($class,'options');
> $options = $values;
> }
> require_once "DataObjects/Alz_resources.php";
> $do =& new DataObjects_Alz_resources();
> $do->get(1);
>
> echo $do->name; // works!
>
> require_once "DB/DataObject/FormBuilder.php";
> $fg =& DB_DataObject_FormBuilder::create($do); // dead!
> echo 1; // nothing
>
> ---------------------------------------------------
>
> INSTALLED PACKAGES:
> ===================
> PACKAGE VERSION STATE
> Archive_Tar 1.3.1 stable
> Console_Getopt 1.2 stable
> DB 1.7.6 stable
> DB_DataObject 1.7.13 stable
> DB_DataObject_FormBu 0.17.1 beta
> ilder
> Date 1.4.3 stable
> HTML_QuickForm 3.2.4pl1 stable
> HTML_Table 1.5 stable
> Mail 1.1.4 stable
> Net_SMTP 1.2.3 stable
> Net_Socket 1.0.1 stable
> PEAR 1.1 stable
> PHPUnit 1.2.3 stable
> XML_Parser 1.0.1 stable
> XML_RPC 1.0.4 stable
>
> Steve
> --
> http://mrclay.org/ :
> http://frenchhorns.mrclay.org/
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>