On Thu, 07 Jun 2007 18:35:00 +0200, -Lost <>
wrote:
> Rik wrote:
>> On Thu, 07 Jun 2007 15:48:57 +0200, -Lost
>> <> wrote:
>>
>>> wrote:
>>>> Can I get the name of a referral page using JavaScript? Just really
>>>> wondering...
>>>
>>> document.referrer
>>>
>>> Speaking of which... this reminds me why I hate PHP so much.
>> How so?
>
> Because the PHP gods that be opted for the misspelled version defined in
> the HTTP standard, instead of just spelling it right to avoid further
> confusion.
>
> Granted, all languages that I know of do it this way as it has become
> sort of an industry standard.

It's terribly frustrating indeed to work with a misspelling, but as it is
an 'industry standard', and the HTTP header actually sais it, IMHO it's
better not to 'guess' what header actually was meant, but just provide an
interface to the actual raw headers
> But if JavaScript could get it right, dammit, then so could PHP.

Javript seldom handles requests, PHP does it all the time...
> Hi, by the way! Long time no see/speak.

Yup, been busy making up for lost time due to a fun hospital visit, so a
lot less usenet trips for me lately
--
Rik Wasmus

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!