Re: [PHP] Encode e-mail text in UTF-8

2012-11-20 Thread Inigo Medina


On Tue, 20 Nov 2012, MC wrote:


Hi,

what is the recommended way to encode e-mail text in UTF-8?

When the site were running in a single byte code page like iso-8859-2 I were 
happy with the imap_8bit function and quoted-printable encoding of e-mails. 
However, the function does not seem to work correctly for multi-byte code 
pages like UTF-8.


Did you use header 'Content-Type:text/html;charset=utf-8' on the email?

iñ




I have tried to search for alternatives but failed to find anything useful.

Thanks in advance for any tips.

MC

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


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

Re: [PHP] building an improved service log

2012-12-04 Thread Inigo Medina


On Thu, 29 Nov 2012, rene7705 wrote:


Hi folks..

I've got several requirements that I'd like to roll into one software component;
- log page views and any errors that page view may generate
- log javascript events (browser user-interaction events, but also
errors on the server during ajax operations)
- log status messages during 'cron' jobs
- gather data on shared hosting and then transfer that data on regular
intervals to a home server (because shared hosting won't allow scripts
to run longer than 30 seconds, and I need to do potentially long
running calculations (statistics) on the gathered data)


Did you think about using a NoSQL approach?

iñ



I'm wondering how to do this efficiently.
I've figured out the fields I need to store, but I'm unsure whether or
not to use a single table or multiple tables.
Single tables are easier to sync from shared hosting to my home
server, but multiple tables might be faster during the calculations
and detail lookups.

Ideally I would like to log all info for all my sites and their
homeserver testing grounds into one database, but that means that the
home server will be generating data in the same tables as the data
collected from shared hosting, meaning I can't just copy over the data
with all of it's auto_increment id fields as they were on the shared
hosting.

Please help me find a graceful solution for what I want to do here..

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


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