Author Topic: Simple PHP.ini editor confusion  (Read 2370 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
Simple PHP.ini editor confusion
« on: May 14, 2015, 08:10:08 AM »
My confusion is just cleared, but i don't know why didn't adapt that string.
I've been forced  :o to write scaping characters on a tool flagged as "simple".

Last line looks like: ;date.timezone =
I tried date.timezone = "Europe/Madrid" with no lucky.
I tried date.timezone = Europe/Madrid w/o quotes with no lucky.

Finally i guess that your are not using quotes" to avoid file parsing, but, you are scapping ALL chars, and for the MOST common timezones you need to add slash/.

Really do you spect from your users to know about scaping chars?

Solution: scape all special chars prepending with \.
My case: date.timezone = Europe\/Madrid

Once you save it you will see it correctly saved and displayed.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.