--
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion
In otherwords, to paraphrase:
<DBAG_MODE>
"We have this super cool new idea that's going to revolutionize the web and
blogs and cloud computing and we might even create our own new buzzword. We
heard you can do this with PHP. We just don't have any code written, so
could you guys write it for us. That'd be swell. kthxbye."
;-)
Dude. Andre. Let me break it down like a fraction, as to how this list
works.
YOU post some code that you are struggling with, or you post some SPECIFIC
question, and the generous subscribers to this list decide if your question
is worthy of their time to reply.
Your "question" (for lack of a better term) was devoid of either of those
things.
Now, had you said, "How can I formulate an RSS feed?", I might point you to
this:
http://www.phpclasses.org/package/560-PHP-XML-RSS-feed-generator-for-conten
t-syndication-.html
Or if you had said, "How does one double click?" (since that is NOT a
web-friendly navigation method by default), I might point you in this
direction:
<script>
onload = function () {
document.getElementById("textarea").ondblclick = function () {
alert('Double Clicked!') }
}
</script>
then this in the body
<textarea id="textarea"></textarea>
Or even if you said, "How do I steal, er um, read an XML file from another
site?" Then someone might show you these functions (since you clearly
missed them when you RTFPM)
http://us2.php.net/manual/en/function.file-get-contents.php
http://us2.php.net/manual/en/ref.simplexml.php
http://us2.php.net/manual/en/book.dom.php
But again, your question was so vague that I (and everyone else) probably
has nowhere to begin to help you and therefore most likely won't. Given the
above advice, you might consider breaking your questions down into PHP
related specific examples.
</DBAG_MODE>
Am 2010-08-27 02:52:48, hacktest Du folgendes herunter:
> Hi everyone,
> We are developing a blog service website.
Very interesting ;-)
> Question: how do we do that with PHP?
By reading the Documentation... :-D
<html>
<head>
<title>Blubber Blog</title>
<link rel="alternate" type="application/rss+xml" title="RSS" href="index.rss" />
<link rel="alternate" type="application/rss+xml" title="Foo" href="foo.rss" />
<link rel="alternate" type="application/rss+xml" title="Bar" href="bar.rss" />
</head>
<body>
Thanks, Greetings and nice Day/Evening
Michelle Konzack
--
##################### Debian GNU/Linux Consultant ######################
Development of Intranet and Embedded Systems with Debian GNU/Linux
itsystems@tdnet France EURL itsystems@tdnet UG (limited liability)
Owner Michelle Konzack Owner Michelle Konzack
Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix
<http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/>
Jabber linux4m...@jabber.ccc.de
ICQ #328449886
Linux-User #280138 with the Linux Counter, http://counter.li.org/
> Hello Michelle,
>
> Hm. link rel="alternate"... that's a good one, thanks (btw, you say me
> that I should RTFM, but if I knew what to read....).
> Now there are two questions:
> 1. How do I do those .RSS files with PHP? All of mmy blog entries and
> other stuff are in MySql. There are classes that can echo the
> appropriate data as RSS, but there will be more .PHP files, not
> .RSS/.XML ones. So how do we manage that?
> 2. Should I make a separate .RSS file for each type of feeds (blog
> feed, comments feed, timeline feed, news feed)?
> thanks!
Andre...
What I did when I created my RSS feed is I went and read the RSS spec
and found out what it needed to create it.[1]
Read through that and it should get you started. If your competent
with PHP then all you would need to do is loop through your result set
to display the results.
If you're not quite sure if you know how to do it though... I as well
as many other people on the list I'm sure are available to hire to get
it done :)
Hm. link rel="alternate"... that's a good one, thanks (btw, you say me
that I should RTFM, but if I knew what to read....).
Now there are two questions:
1. How do I do those .RSS files with PHP? All of mmy blog entries and
other stuff are in MySql. There are classes that can echo the
appropriate data as RSS, but there will be more .PHP files, not
.RSS/.XML ones. So how do we manage that?
2. Should I make a separate .RSS file for each type of feeds (blog
feed, comments feed, timeline feed, news feed)?
thanks!
--
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion
Am 2010-08-27 12:55:51, hacktest Du folgendes herunter:
> Hello Michelle,
>
> Hm. link rel="alternate"... that's a good one, thanks (btw, you say me
> that I should RTFM, but if I knew what to read....).
> Now there are two questions:
> 1. How do I do those .RSS files with PHP? All of mmy blog entries and
> other stuff are in MySql. There are classes that can echo the
> appropriate data as RSS, but there will be more .PHP files, not
> .RSS/.XML ones. So how do we manage that?
> 2. Should I make a separate .RSS file for each type of feeds (blog
> feed, comments feed, timeline feed, news feed)?
The Internet is full of HOWTOs which explain HOW-TO-MAKE-A-RSS-FEED...
However sometimes back I asked HERE IN THIS LIST the same IDIOTQUESTION!
You could have searched THIS LIST... :-P
OK, since I now know, how to make RSS Feeds here some advice:
1) you should know, how many days or hoe many items should be stored
in the RSS feed
2) Create for each article in the BLOG in a directory a file like
----8<--------------------------------------------------------------
<item>
<title>PHP Website</title>
<link>http://www.php.net/</link>
<description>Great programmers Website, where you an find nice peoples on the mailinglist, which explain how RSS is working.</description>
<guid isPermaLink="true">http://blog.pnp.net/items/1258834764.html</guid>
<pubDate>Sat, 21 Nov 2009 21:20:12 +0100</pubDate>
</item>
----8<--------------------------------------------------------------
and save them using the UNIX serialtime like 1258834764.rss
The included "isPermaLink" should point to the BLOG article
3) Now you have to create the index.rss.tmp with the HEADER which looks
like
----8<--------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">
<channel>
<title>PHP Superhere PHP RSS Feed</title>
<link>http://www.php.net/</link>
<description>PHP RSS Feed Overview</description>
<language>en</language>
<copyright>Copyright 2010, Michelle Konzack</copyright>
<lastBuildDate>Sun, 29 Aug 2010 04:13:17 +0200</lastBuildDate>
<docs>http://www.php.net/michelles_php_rss_feed/</docs>
<managingEditor>linux4m...@tamay-dogan.net</managingEditor>
<webMaster>webm...@php.net</webMaster>
<ttl>10</ttl>
<image>
<title>PHP Website</title>
<url>http://www.php.net/logo.png</url>
<link>www.php.net</link>
<width>120</width>
<height>160</height>
<description>PHP Logo</description>
</image>
----8<--------------------------------------------------------------
Now pipe how much (and in order ) the messages build under 2) at the
end and of this file...
4) close the RSS feed index.rss.tmp with
----8<--------------------------------------------------------------
</channel>
</rss>
----8<--------------------------------------------------------------
5) now move
mv index.rss.tmp <doc_root>/index.rss
thats all
> Hello Andre Polykanine,
>
> Am 2010-08-27 12:55:51, hacktest Du folgendes herunter:
> > Hello Michelle,
> >
> > Hm. link rel="alternate"... that's a good one, thanks (btw, you say me
> > that I should RTFM, but if I knew what to read....).
> > Now there are two questions:
> > 1. How do I do those .RSS files with PHP? All of mmy blog entries and
> > other stuff are in MySql. There are classes that can echo the
> > appropriate data as RSS, but there will be more .PHP files, not
> > .RSS/.XML ones. So how do we manage that?
> > 2. Should I make a separate .RSS file for each type of feeds (blog
> > feed, comments feed, timeline feed, news feed)?
>
> The Internet is full of HOWTOs which explain HOW-TO-MAKE-A-RSS-FEED...
>
> However sometimes back I asked HERE IN THIS LIST the same IDIOTQUESTION!
>
> You could have searched THIS LIST... :-P
I've seen sites which detail all the posts to this list. Do you know of
one which has *search* capabilities?
Paul
--
Paul M. Foster