Re: fopen over a network

From: Date: Wed, 04 Dec 2002 08:31:37 +0000
Subject: Re: fopen over a network
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126960@lists.php.net to get a copy of this message
On Wednesday 04 December 2002 16:21, 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. Just ask the users to right-click -> "Save link as"! > 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? fopen() doesn't know about "file://". If the file is on your webserver then just specify the absolute path to the file. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Go not to the elves for counsel, for they will say both yes and no. -- J.R.R. Tolkien */

« previous php.general (#126960) next »