Glob rss feed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ozzy
Forum Commoner
Posts: 74
Joined: Tue Apr 11, 2006 4:45 pm

Glob rss feed

Post by ozzy »

Hey,

Is there any way of creating a rss feed using glob()?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

glob() returns a directory listing - it has nothing to do with creating an RSS file. Certainly you can use it to provide an RSS feed of the contents of a directory, but other than that...
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
ozzy
Forum Commoner
Posts: 74
Joined: Tue Apr 11, 2006 4:45 pm

Post by ozzy »

pickle wrote:Certainly you can use it to provide an RSS feed of the contents of a directory, but other than that...
Yeah, that's what i ment, create one using the content. But how would i go about doing that.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Do some research on what glob() returns you.
Do some more research on what the format of an RSS feed needs to be.

Figure out a way to morph what glob() gives you into the RSS format.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply