Re: fopen over a network

From: Date: Wed, 04 Dec 2002 19:10:31 +0000
Subject: Re: fopen over a network
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127020@lists.php.net to get a copy of this message
Please reread the documentation found here: http://www.php.net/header It has a pdf file as an example, modify according to your needs. Regards, Philip On Wed, 4 Dec 2002, Elkan wrote: > Couldn't you set the Mime-Type on the server for the correct extenstion? > > Leif K-Brooks wrote: > > > Link them to a page like this to download the file: > > > > <?php > > header("Content-type: application/octet-stream"); > > //Code to display file > > ?> > > > > Dara Dowd wrote: > > > > >Hello, > > >I'd like a user to be able download a file from a file server on my LAN. > > > > > >Using <a href="file://server/directory/filename"> works ok, but this > > >simply displays the file in the browser and I want to force the download dialog box to appear. > > > > > > > > >So now i have <a href="download.php?file=filename">, and i want to do > > >something like > > >fopen("file://server/directory/filename",rb") but i just get an invalid > > >argument warning. > > >Am i on the right track?Is there a way around this? > > > > > >Cheers, > > >Dara > > > > > > > > > > > > > > > > > > > -- > > The above message is encrypted with double rot13 encoding. Any unauthorized attempt to > > decrypt it will be prosecuted to the full extent of the law. >

« previous php.general (#127020) next »