Re: PHP: preview an html file.
| From: | Richard Lynch | Date: | Fri, 26 Jul 2002 17:01:09 +0000 |
| Subject: | Re: PHP: preview an html file. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109814@lists.php.net to get a copy of this message | ||
>Hello everybody,
>I hope u can help me with this. I'll be very grateful!
>This file retrieves a list of files from a folder on the server and then
>has to diplay a list of them. When selecting one of them in the list, it
>should display a preview (i.e. its contents) in the same file. I think i
>should use frames but donno how to do it :(.
>Thx a lot
You don't really need a FRAME at all...
What part of this doesn't work?...
You might want a <TABLE> with one (1) row <TR> and two columns <TD> -- One
for the links on the left, one for the content on the right.
>
>
>
><?PHP
>$d = dir("/home/mcms/public_html/MCMS/Alia/pageTmp");
>?>
>
><html>
><head>
></head>
><body>
<TABLE><TR><TD>
> <form method="POST" action="showTree.php">
> <p><b>Plz select a page template:</b></p>
> <p><select size="1" name="pageList" >
>
><?PHP
> while (false !== ($entry = $d->read()))
> {
> if ($entry != '.' && $entry != '..')
> echo '<option
> value="'.$entry.'">'.$entry.'</option>.\n';
> }
>?>
>
> </select></p>
> <p><input type="submit" value="Create"
> name="createButton" >
> <input type="hidden"
>value="/home/mcms/public_html/MCMS/Alia/pageTmp/" name="pageField"
>/></p>
</FORM>
</TD><TD>
><?PHP
>/*if (!$file = fopen("/home/mcms/public_html/MCMS/Alia/pageTmp/
>$pageList", "rb")){
> echo("couldnt open the file.");
>} else{
> fpassthru($file);
>}*/
>?>
>
######></form>
</TD></TR></TABLE>
></body>
></html>
>
><?PHP
>$d->close();
>?>
>
>
--
Like Music? http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
major distro). Need to record live events (mixed already) to stereo
CD-quality. Soundcard Recommendations?
Software to handle the recording? Don't need fancy mixer stuff. Zero (0)
post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
audio-to-disk.