Re: code quest

From: Date: Thu, 02 Dec 2010 03:48:38 +0000
Subject: Re: code quest
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-309809@lists.php.net to get a copy of this message
OK, answered my own question; no, an ssi statement inside a php echo statement is simply sent out as is, unparxsed. But if it is external to the php area, it works fine, so we have to include a function in there that will read anything I want to spew- like the 1 line contents of a desciptor file in a particular directory. The idea is to create a directory lister which reads a descriptor for that folder and uses it as the text for the link. Daniel P. Brown wrote:
On Sat, Nov 27, 2010 at 12:36, Daniel P. Brown <daniel.brown@parasane.net> wrote:
If you want something more powerful - and often quicker - check into SPL: specifically FilesystemIterator[1], DirectoryIterator[2], and RecursiveDirectoryIterator[3]. A quick example to link all child files and directories with relative linking:
    
Might help to provide the key as well, eh? Sorry....
        ^1: http://php.net/filesystemiterator
        ^2: http://php.net/directoryiterator
        ^3: http://php.net/recursivedirectoryiterator
-- end Very Truly yours, - Kirk Bailey, Largo Florida kniht +-----+ | BOX | +-----+ think

« previous php.general (#309809) next »