Re: [PHP] problem generating a file link

2007-03-05 Thread Jochem Maas
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
 

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



RE: [PHP] problem generating a file link

2007-03-05 Thread George Pitcher
Jochem,

  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?

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.

George

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



[PHP] problem generating a file link

2007-03-05 Thread George Pitcher
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

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

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



Re: [PHP] problem generating a file link

2007-03-05 Thread Jochem Maas
George Pitcher wrote:
 Jochem,
 
 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?

 I'm using Smarty so the link doesn't appear as HTML as such. 

can't see what Smarty has to do with - can't remember Smarty 'cleaning'
file url's (at least not without being specifically asked).

besides Smarty is just outputting HTML so I don't understand your comment.

 This is what
 the browser (guessed wrong - I'm using Firefox) shows in the status bar.

ok, right - so what does the html source actually contain?

I'm assuming that the way firefox is interpreting the link makes it not work?
does the link work in IE?

 
 George
 

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



RE: [PHP] problem generating a file link

2007-03-05 Thread George Pitcher
Jochem,

  This is what
  the browser (guessed wrong - I'm using Firefox) shows in the status bar.

 ok, right - so what does the html source actually contain?

a href=file://G:\588012.pdf target=_blankPDF/a

 I'm assuming that the way firefox is interpreting the link makes
 it not work?
 does the link work in IE?

I get exactly the same in IE6. Source is good, link is bad.

Cheers

George

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



Re: [PHP] problem generating a file link

2007-03-05 Thread Jochem Maas
George Pitcher wrote:
 Jochem,
 
 This is what
 the browser (guessed wrong - I'm using Firefox) shows in the status bar.
 ok, right - so what does the html source actually contain?

 a href=file://G:\588012.pdf target=_blankPDF/a

so what happens when you make it like so:

a href=file:///G:/588012.pdf target=_blankPDF/a

?

 
 I'm assuming that the way firefox is interpreting the link makes
 it not work?
 does the link work in IE?

 I get exactly the same in IE6. Source is good, link is bad.
 
 Cheers
 
 George
 

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



RE: [PHP] problem generating a file link

2007-03-05 Thread George Pitcher
 Jochem,
  
  This is what
  the browser (guessed wrong - I'm using Firefox) shows in the 
 status bar.
  ok, right - so what does the html source actually contain?
 
  a href=file://G:\588012.pdf target=_blankPDF/a
 
 so what happens when you make it like so:
 
 a href=file:///G:/588012.pdf target=_blankPDF/a
 
 ?

No change. 

George

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



Re: [PHP] problem generating a file link

2007-03-05 Thread Myron Turner
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,

  

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?



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.

George

  



--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/