RE: Displaying a local file
by Ilya Dubinsky <ilya788(at)inter.net.il>
|
Date: |
Sun, 07 May 2000 11:44:32 +0200 |
To: |
"Brian V Bonini" <brian(at)livenet.net> |
Cc: |
hwg-languages(at)hwg.org |
References: |
hwg |
|
todo: View
Thread,
Original
|
|
At 12:31 5/5/00 -0400, you wrote:
>Is asking the user for the drive letter feesible?
>You could then just create the link dynamically
>based on their answer.
>
>If not,
>perhaps you could use PHP;
>
><?
>$newfile = "d:\\localfile.html"
>
>//etc....
>
>if (!file_exists($newfile) {
>$fp = fopen($newfile, "r");
>}
>
>//etc.....
>?>
>
>I don't remember if file_exsists support URL's
>But I think you could probably also try "fopen"
>
>if( !($fp = fopen("file://d:\\localdoc.html", "r")) )
>
>
>-Brian
>***************
Hey!!! Are you all right? what do you think this will do?
try to open a file on server??? Or automatically determine client's
address, turn his browser into a web server and download the page????? Argh!
Yours, Ilya.
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA