Re: How to link to a file with ampersand in its name

Liste des GroupesRevenir à ol misc 
Sujet : Re: How to link to a file with ampersand in its name
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.os.linux.misc
Date : 08. Sep 2024, 14:47:24
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vbk6ct$1u3ch$2@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 07/09/2024 20:33, Lew Pitcher wrote:
On Sat, 07 Sep 2024 19:05:54 +0000, Lew Pitcher wrote:
 
On Sat, 07 Sep 2024 19:44:30 +0100, Andy Burns wrote:
>
The Natural Philosopher wrote:
>
I have a file that has to be called U&blah.png
>
I cannot find any way to direct the browser to load it
>
U&ampblah.png doesnt work
U%26blah.png doesnt work
>
Using php rawurlencode doesnt work. It effectively does nothing
>
Any ideas?
http://localhost/U%26blah.txt
>
works here (both with IIS on win11 and apache on Fedora)
>
With test files white_grapes.png and white&grapes.png
(where white_grapes.png is a symlink to white&grapes.png)
both
   <img src="white_grapes.png" />
and
   <img src="white&grapes.png" />
produced proper images in Firefox, from an apache server
 Also
   http://host/white&grapes.png
resolves to the proper image when entered in the URL bar
of Firefox (again, image served by an apache server on Linux)
 
Yeah apologies all round. I was making changes to the development server while testing on the old server.
--
"It is an established fact to 97% confidence limits that left wing conspirators see right wing conspiracies everywhere"

Date Sujet#  Auteur
7 Sep 24 * How to link to a file with ampersand in its name14The Natural Philosopher
7 Sep 24 +- Re: How to link to a file with ampersand in its name1Lew Pitcher
7 Sep 24 +* Re: How to link to a file with ampersand in its name9Andy Burns
7 Sep 24 i+* Re: How to link to a file with ampersand in its name6Lew Pitcher
7 Sep 24 ii+- Re: How to link to a file with ampersand in its name1Andy Burns
7 Sep 24 ii`* Re: How to link to a file with ampersand in its name4Lew Pitcher
8 Sep 24 ii `* Re: How to link to a file with ampersand in its name3The Natural Philosopher
8 Sep 24 ii  `* Re: How to link to a file with ampersand in its name2rbowman
8 Sep 24 ii   `- Re: How to link to a file with ampersand in its name1The Natural Philosopher
8 Sep 24 i`* Re: How to link to a file with ampersand in its name2The Natural Philosopher
8 Sep 24 i `- Re: How to link to a file with ampersand in its name1Carlos E.R.
7 Sep 24 +- Re: How to link to a file with ampersand in its name1Rich
7 Sep 24 +- Re: How to link to a file with ampersand in its name1Carlos E.R.
8 Sep 24 `- Re: How to link to a file with ampersand in its name1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal