|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 2236
|
php-mysql rss feed problema pubdate
inserisco tramite php in un db tiotolo del feed, descrizione, link, e data pubblicazione
con un altro script prelevo i feed dal db e vengono stampati nel formato xml affinchè la data venga iterpretata correttamente dai feed reader come deve essere formattata? aprendo un feed ho visto che è così fatto?: <item> <title>Prova</title> <link>http://www.guardaqua.it/index.php?a=74</link> <description><![CDATA[<p>Qui possiamo inserire testo e tag html del nostro articolo</p>]]></description> <author>info@guardaqua.it (Maurizio)</author> <category>Test</category> <pubDate>Wed, 16 Nov 2005 01:13:16 +0100</pubDate> </item> potete darmi qualche chiarimento in merito? ciao e grazie |
![]() |
![]() |
![]() |
#2 | |
Senior Member
Iscritto dal: Nov 2005
Città: TO
Messaggi: 5206
|
Quote:
$pubdate = date ("D, d M Y H:i:s O", $un_timestamp); oppure $pubdate = date ("r", $un_timestamp);
__________________
Andrea, SCJP 5 (91%) - SCWCD 5 (94%) |
|
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 2236
|
grazie mille !! problema risolto
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 23:11.