Re: problem generating a file link
| From: | Myron Turner | Date: | Mon, 05 Mar 2007 15:50:47 +0000 |
| Subject: | Re: problem generating a file link | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249878@lists.php.net to get a copy of this message | ||
There's nothing wrong with this. It's standard. I believe the logic of this is that the first two forward slashes represent the standard protocol indicator: http://, ftp://, file://, while the final forward slash represents a directory off the root directory, as a carry over from unix
/tmp, /bin, /usr, etc.
George Pitcher wrote:
Jochem,-- _____________________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/I'm using Smarty so the link doesn't appear as HTML as such. This is what the browser (guessed wrong - I'm using Firefox) shows in the status bar. GeorgeI 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.pdfis that what the browser (let me guess: IE) is interpreting the link as or is that what is literally in the html source?