php include()

Status
Not open for further replies.

fitzjj

Daemon Poster
Messages
544
i've got a website, it has a table in it and in one of the cells i need to include a page, this is fine if i use
include('page.htm');

the only problem is what i really want is a directory listing of one of the directories on the site. Is it possible to do this. there is no problem showing the direcroty listing on its own but as an include... is it possible?

thanks
 
by directory listing, do you mean the directory listing in the ftp style? or can you construct one yourself? It's quite easy to loop through a directory and spit out the content..
 
it may well be what you mean by ftp style. basically how a unix directory is displayed on a webserver if world is given read permission. (e.g. index of ....)

like you say it is possible to loop through and spit out the content, which is probably what i will do now, i was just trying to save myself a bit of work, but looks like i will need to do it anyway
 
Status
Not open for further replies.
Back
Top Bottom