Re: [PHP] Any Ideas @ becomes _Xy

2002-05-20 Thread Analysis Solutions

On Sat, May 18, 2002 at 11:45:49AM +0100, Henry wrote:
 
 http://GetResponse.com/k.cgi?a=blahblahf=henry_Xyteacake.force9.co.uk
 I subscribed using the email address [EMAIL PROTECTED]
 They appear to have translated the @ symbol to _Xy.
 Any guess why? Is there a PHP function that does this translation for me? Is
 it some sort of standard?

That's something they did manually to their own standard.  The standard 
encoding for @ is %40.  Why?  Beats me.  They don't really need to.  
Encoding URL's can be done via urlencode() and urldecode().

If you want to do the same thing they're doing, you can use
str_replace(): http://www.php.net/manual/en/function.str-replace.php

Enjoy,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




RE: [PHP] Any Ideas @ becomes _Xy

2002-05-20 Thread Scott Hurring

 -Original Message-
 From: Analysis  Solutions [mailto:[EMAIL PROTECTED]]
 Subject: Re: [PHP] Any Ideas @ becomes _Xy
 
 On Sat, May 18, 2002 at 11:45:49AM +0100, Henry wrote:
  
  
 http://GetResponse.com/k.cgi?a=blahblahf=henry_Xyteacake.force9.co.uk
  I subscribed using the email address [EMAIL PROTECTED]
  They appear to have translated the @ symbol to _Xy.
  Any guess why? Is there a PHP function that does this 
 translation for me? Is
  it some sort of standard?
 
 That's something they did manually to their own standard.  
 The standard 
 encoding for @ is %40.  Why?  Beats me.  They don't really need to.  
 Encoding URL's can be done via urlencode() and urldecode().
 
 If you want to do the same thing they're doing, you can use
 str_replace(): http://www.php.net/manual/en/function.str-replace.php
 
 Enjoy,
 
 --Dan

Perhaps they did it to thwart smart spambots that can
translate %40 to @.

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

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




[PHP] Any Ideas @ becomes _Xy

2002-05-18 Thread Henry

Hi All,

I don't think this is a PHP specific issue but I want to use PHP to solve
it.

I'm using GetResponse to supply my autoresponders. They provide an
unsubscribe link at the bottom of the emails as follows:

http://GetResponse.com/k.cgi?a=blahblahf=henry_Xyteacake.force9.co.uk

I subscribed using the email address [EMAIL PROTECTED]

They appear to have translated the @ symbol to _Xy.

Any guess why? Is there a PHP function that does this translation for me? Is
it some sort of standard?

Henry



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