Directory listing and framesets

I am using this script below to list a directory of dates and within each directory I call a file gallery.php. I’m trying to have gallery.php display in another window - like a frameset “target = a new window” Is this possible?

Thank you for your help.

[php]<?PHP

//define the path as relative
$path = “./”;

//using the opendir function
$dir_handle = @OPENDIR($path) or DIE(“Unable to open $path”);

ECHO “Directory Listing of $path
”;

//running the while loop
WHILE ($file = READDIR($dir_handle))
if (($file != “.”) && ($file != “…”) && ($file != “jim.php”) &&

{
ECHO “$file
”;
}

//closing the directory
CLOSEDIR($dir_handle);

?> [/php]

I figured out the problem. I had to add slashes to this - target=“Pictures and Reports”

[php]<a href=$file/dirlist_files/gallery.php target=“Pictures and Reports”>$file
";[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service