Re: new DateTimeZone and html encoding [message #172829 is a reply to message #172827] |
Fri, 04 March 2011 09:08 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to previous message](/forum/theme/default/images/down.png) |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma:
|
Senior Member |
|
|
El 04/03/2011 9:39, polilop escribió/wrote:
> when trying to do this :
> $oldTZone= new DateTimeZone("Pacific Time (US & Canada");
> or
> $oldTZone=timezone_open("Pacific Time (US & Canada")
> i get
> Unknown or bad timezone (Pacific Time (US & Canada))
>
> it seems that it encodes the &. How can i disable it from doing so?
You can disable the html_errors directive, e.g.:
ini_set('html_errors', FALSE);
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|