okay
I still wonder why local ini_set did not work for you
I cant see you did anything else
but what is told in this nice overview of what solutions
are at our hands to fix this.
-Per script basis
PHP configuration directives can be set on a per script basis with the ini_set function.
Put the code to set the directives at the top of your script.
<?php ini_set('arg_separator.output','&'); ?>
This line, of course, have to be included
in each php page, where you want to use this setting.
At the top, beginning of script..
Can also be set in a separate config.php or special_settings.php
// any page dealing with XHTML
include ( "special_settings.php" );
// rest of script code
Information about this topic I found,
It is from
http://www.w3.org/
A great source of knowledge to anything regarding web coding.
And well known by most of us.
Ampersands, PHP Sessions and Valid HTML
Why using PHP sessions causes invalid HTML and XHTML to be generated, and how to fix it.
Solutions
Outputting a character reference
The character that PHP uses to separate arguments is configurable with the arg_separator.output directive. This can be set in a number of ways and is the solution suggested in the PHP manual.
- Editing php.ini
The php.ini file contains the central configuration data for an install of PHP on a computer. You can specify a character reference to use there.
arg_separator.output = "&"
-Apache directives
The Apache web server can set PHP scripts in all the usual places.
This allows different directives to be set on
- a per site or
- per directory basis
( in, for example, a <location> block or .htaccess file ).
php_value arg_separator.output &
-Per script basis
PHP configuration directives can be set on a per script basis with the ini_set function. Put the code to set the directives at the top of your script.
<?php ini_set('arg_separator.output','&'); ?>
🙂 also mentions the use of semicolon like you did
with examples how to set this instead of 'amp'
🙂 also some other kinds of solutions, options
to deal with this
when using XHTML
LINK to this w3.org document page:
http://www.w3.org/QA/2005/04/php-session.html#solutions
re-search with google
by
halojoy