RE: [PHP] base64_encode, forward slashes and mod_rewrite

2006-02-24 Thread Jared Williams
There are variants of base64, which replace the + / characters with something less likely to cause problems. http://en.wikipedia.org/wiki/Base64 Jared sorry Ive done it again, for anyones interest, you might have to urlencode the string twice for mod_rewrite to accept encrypted and

[PHP] base64_encode, forward slashes and mod_rewrite

2006-02-23 Thread Dan Rossi
Continueing on my prior problem, Ive discovered that base64_encode adds forward slashes in its encoded string, when its urlencoded it becomes something like /feeds/UmFuZG9tSVZd%2FMChU7sMQqdUi%2FrgYHD7 mod_rewrite doesnt seem to like the %2F in the string and fails with a 404 as it doesnt

Re: [PHP] base64_encode, forward slashes and mod_rewrite

2006-02-23 Thread Dan Rossi
sorry Ive done it again, for anyones interest, you might have to urlencode the string twice for mod_rewrite to accept encrypted and base64_encoded strings which add slashes and ampersands into their strings. It is confirmed there is a bug in mod_rewrite and doesnt like the urlencoded %2F

Re: [PHP] base64_encode in URLs

2005-05-11 Thread Richard Lynch
On Tue, May 10, 2005 8:50 pm, Joe Harman said: Hey just curious if it's okay to encode variables that are passed in URLs with base64_encode??? since, I am going to pass a email address in the URL, I would like to protect the email address from typical people I dunno if every character that

Re: [PHP] base64_encode in URLs

2005-05-11 Thread Joe Harman
HA... Thanks for your thoughts... I am actually using this for a broadcast email system... I just use a PHP image generator to make a 1 x1 gif... the image generator script takes a variable for color then I added another one for email address to keep stats on who has opened the message ex.

Re: [PHP] base64_encode in URLs

2005-05-11 Thread Brandon Ryan
Joe, this may be a little off topic, but most modern email clients wont show images in HTML unless the user clicks to show images manually. This could fool your automatic counting and email verification. On 5/11/05, Joe Harman [EMAIL PROTECTED] wrote: HA... Thanks for your thoughts... I am

Re: [PHP] base64_encode in URLs

2005-05-11 Thread Joe Harman
Hey Thanks Brandon... I know that does happen, so the stats is just suppose to approximate.. thanks for point that out Cheers Joe On 5/11/05, Brandon Ryan [EMAIL PROTECTED] wrote: Joe, this may be a little off topic, but most modern email clients wont show images in HTML unless the user clicks

[PHP] base64_encode in URLs

2005-05-10 Thread Joe Harman
Hey just curious if it's okay to encode variables that are passed in URLs with base64_encode??? since, I am going to pass a email address in the URL, I would like to protect the email address from typical people -- Joe Harman - Do not go where the path may lead, go instead where there is

[PHP] base64_encode corrupts files?

2003-07-18 Thread Imposible
Hi, I trying to send a binary file (exe, zip, etc etc) that is attached using mail() function. I'm do a base64_encode and chunk_split after read the file, but the result is a corrupt file so i can't read the attached file with my mail client. When i call the script the attached file is

Re: [PHP] base64_encode

2002-06-27 Thread Rouvas Stathis
sounds right. HTH Andrew Braund -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 11:15 To: php-gen Subject: [PHP] base64_encode What other characters are possible from the output of base64_encode() except [A-Za-z0-9

[PHP] base64_encode

2002-06-26 Thread Gerard Samuel
What other characters are possible from the output of base64_encode() except [A-Za-z0-9] ?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] base64_encode

2002-06-26 Thread Andrew Braund
sounds right. HTH Andrew Braund -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 11:15 To: php-gen Subject: [PHP] base64_encode What other characters are possible from the output of base64_encode() except [A-Za-z0-9] ?? Thanks

Re: [PHP] base64_encode

2002-06-26 Thread Gerard Samuel
like + and /. 26+26+10+2=64 sounds right. HTH Andrew Braund -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 11:15 To: php-gen Subject: [PHP] base64_encode What other characters are possible from the output of base64_encode() except

[PHP] base64_encode problem while using IMAP

2002-01-15 Thread Kathy
I've been trying to decode an attached image in an email using imap. Parse error: parse error, expecting `T_VARIABLE' or `'$'' in imapTest.php on line 80 $image = trim(@imap_fetchbody($mbox, 2, 2)); $64image = base64_encode($image); I've also tried: $image = trim(@imap_fetchbody($mbox, 2,