PHP Error

Almost worked…

converted to an HTML entity OK, but only returned the first character ‘m’ of mail AT domain.com

Now I’m totally lost.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Make this line as follows:

$arr = preg_split('//',$string,-1,PREG_SPLIT_NO_EMPTY);

Make sure this is all one line, despite whatever well-meaning Mail
does to it.

Also, your invocation is missing the closing tag for the a href:

echo "<a href="mailto:$codedemail">Mail</a>";

Walter

On May 1, 2008, at 11:25 AM, WebWorker wrote:

  $arr = (array) $string;

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Not wanting to change things but I found this on my PHP Reference widget

htmlentities()

Would this work?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Where do that go?

On 1 May. 2008, 3:49 pm, waltd wrote:

Make this line as follows:

$arr = preg_split(‘//’,$string,-1,PREG_SPLIT_NO_EMPTY);


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It will only convert those characters that require encoding. Just as
you found with rawurlencode(), that would consist mainly of the [at]
sign. Everything else is a plain ASCII character, so it won’t be
touched.

Walter

On May 1, 2008, at 11:50 AM, WebWorker wrote:

Not wanting to change things but I found this on my PHP Reference
widget

htmlentities()

Would this work?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Replace the first line inside the function, the one that currently
starts with $arr = …

Walter

On May 1, 2008, at 11:55 AM, WebWorker wrote:

Where do that go?

On 1 May. 2008, 3:49 pm, waltd wrote:

Make this line as follows:

$arr = preg_split(‘//’,$string,-1,PREG_SPLIT_NO_EMPTY);


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As yes of course! Seems it only converts HTML items not plain text.

We’re in Business, that line works, i’ll do some testing in the Paypal button later today. And dissect it to understand what is happening.

Thanks again.

On 1 May. 2008, 3:57 pm, waltd wrote:

It will only convert those characters that require encoding. Just as
you found with rawurlencode(), that would consist mainly of the [at]
sign. Everything else is a plain ASCII character, so it won’t be
touched.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Success - all working correctly and emails hidden in 200+ Paypal buttons :slight_smile:

Thanks Walt.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options