On Wednesday 30 July 2003 18:28, Tal Achituv wrote: > 1) Hebrew pages are sent as "western" encoding... > the text is right but for some reason the browser sets itself to "western" > instead of Hebrew. > if I set it to "Hebrew" its fine (until I refresh or click a link).
You can explicitly set the default encoding that Apache uses to send page by adding this line: AddDefaultCharset ISO-8859-8-i (or any other character set you wish to use by default) > 2) the 2nd problem is that my PHP script does not recognize parameters, > like test.php?active=true&bad=good > the parameters $active & $bad are both empty!!!! (WHY?!? OH WHY!!!!??) Please note that as of PHP 4.2.0, the setting for "register_globals" is set to "off" by default, which will cause GET parameters not to be "registered" as global variables. you can either set "reigster_globals" to "on" explicitly in /etc/php.ini, or use the global $HTTP_GET_VARS, $_GET or $_REQUEST arrays. I personally prefer the last as it allows the script to also accept the same variables from POST or from the session, or the second if you only wish to get the variables from the query string. using "register_globals" to access external data is frowned upon as it is considered a security risk. -- Oded ::.. Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity." ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]