PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > RSS Feed Creation Question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
RSS Feed Creation Question

Réponse
 
LinkBack Outils de la discussion
Vieux 27/03/2008, 18h55   #1
JeffV
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RSS Feed Creation Question

I have a RSS.php file that creates my feed everything validates except
the description tag.

$summary =
htmlentities(strip_tags($line['summary'],ENT_QUOTES),ENT_QUOTES);

$output .= "<item>
<guid>".htmlentities($line['URL'])."</guid>
<title>".htmlentities($line['title'])."</title>
<link>".htmlentities($line['URL'])."</link>
<description>".$summary."</description>
</item>";

If I take out the description then the feed works fine except my
summaries aren't readable.

When I put in the description tag (above) my Yahoo reader shows the
summaries but there are still %23, %2C,%27 and so on.

I have tried several variations. I'm just wondering where I am going
wrong. Can anyone advise?

Thanks,

Jeff
  Réponse avec citation
Vieux 28/03/2008, 12h12   #2
Toby A Inkster
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RSS Feed Creation Question

JeffV wrote:

> I have a RSS.php file that creates my feed everything validates except
> the description tag.


What error message do you get?

Could it be a charset problem?

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 1 day, 22:32.]

Best... News... Story... Ever!
http://tobyinkster.co.uk/blog/2008/03/23/hypnotist/
  Réponse avec citation
Vieux 29/03/2008, 05h09   #3
JeffV
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RSS Feed Creation Question

No errors... However, when I put in the description tag in the
rss.php file my Yahoo reader shows the
description but there are %23, %2C,%27 showing up where the commas,
quotes are.



On Mar 28, 4:12 am, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> JeffV wrote:
> > I have a RSS.php file that creates my feed everything validates except
> > the description tag.

>
> What error message do you get?
>
> Could it be a charset problem?
>
> --
> Toby A Inkster BSc (Hons) ARCS
> [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
> [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 1 day, 22:32.]
>
> Best... News... Story... Ever!
> http://tobyinkster.co.uk/blog/2008/03/23/hypnotist/


  Réponse avec citation
Vieux 30/03/2008, 18h10   #4
Toby A Inkster
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RSS Feed Creation Question

JeffV wrote:

> No errors... However, when I put in the description tag in the rss.php
> file my Yahoo reader shows the description but there are %23, %2C,%27
> showing up where the commas, quotes are.


URL?

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 4 days, 4:30.]

Cognition 0.1 Alpha 6
http://tobyinkster.co.uk/blog/2008/0...nition-alpha6/
  Réponse avec citation
Vieux 30/03/2008, 22h10   #5
JeffV
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RSS Feed Creation Question

http://www.godsurfer.com/rss.php



On Mar 30, 10:10 am, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> JeffV wrote:
> > No errors... However, when I put in the description tag in the rss.php
> > file my Yahoo reader shows the description but there are %23, %2C,%27
> > showing up where the commas, quotes are.

>
> URL?
>
> --
> Toby A Inkster BSc (Hons) ARCS
> [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
> [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 4 days, 4:30.]
>
> Cognition 0.1 Alpha 6
> http://tobyinkster.co.uk/blog/2008/0...nition-alpha6/


  Réponse avec citation
Vieux 31/03/2008, 06h41   #6
Toby A Inkster
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RSS Feed Creation Question

JeffV wrote:

> http://www.godsurfer.com/rss.php


There's nothing wrong with that RSS, but it doesn't contain any
<description> tags, so I can't really assess if there's a problem with
those.


--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 4 days, 17:00.]

Cognition 0.1 Alpha 6
http://tobyinkster.co.uk/blog/2008/0...nition-alpha6/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h28.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15246 seconds with 14 queries