Re: problem generating a file link

From: Date: Mon, 05 Mar 2007 14:18:58 +0000
Subject: Re: problem generating a file link
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-249857@lists.php.net to get a copy of this message
George Pitcher wrote: > Hi, > > I have a web page that only I see, and I want to link to a PDF file on a > mapped drive so that it will open in Acrobat. > > I have tried variations on the following: > > $storelink = "<a href=\"file://G:\\".$filename.".pdf\" > target=\"_blank\">PDF</a>"; > > and the link keeps coming out as: > > file:///G:/575991.pdf is that what the browser (let me guess: IE) is interpreting the link as or is that what is literally in the html source? > > So I have 3 x '/' and a '/' where I want a '\'. > > Can anyone tell me how to code this to get it right? > > MTIA > > Cheers > > George >

« previous php.general (#249857) next »