Re: SIMPLExml problem....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cruonit wrote:
I just copy/paste the error from other code, but i talked to the admin and
he said

I might suggest that reading the error (and maybe reseaching the meaning - if you
don't understand what it means) ...

read this:
http://www.php.net/manual/en/ini.core.php

now assuming your simpleXML code is not including any shite from phpNuke etc
(stuff that relies on php4 object behaviour) you can set the
zend.ze1_compatibility_mode to Off/0 in either a .htaccess file or in the virtualhost
directive or elsewhere ...

zend.ze1_compatibility_mode falls under PHP_INI_ALL which means you can even set it
in your script:

Table H-2. Definition of PHP_INI_* constants
Constant	Value	Meaning
PHP_INI_USER	1	Entry can be set in user scripts or in Windows registry
PHP_INI_PERDIR	2	Entry can be set in php.ini, .htaccess or httpd.conf
PHP_INI_SYSTEM	4	Entry can be set in php.ini or httpd.conf
PHP_INI_ALL	7	Entry can be set anywhere

- actually it means you can turn the value on and off countless times
inside a script depending on which code/objects are being used/accessed/etc - but
I have a funny feeling that if I combined some simeplXML code with some phpNuke code
and made it switch ze1_compatibility_mode as required that it wouldn't work very well...
but then again its completely untested.


"
we can't set it off because then all PHP-4 written object code would be not
functional.

thats not true perse. alot of php4 OO codes works as-is.

That means 99% of all code (all these forums, CMS - phpNuke, phpBB....)
"




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux