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

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to