brulbuik
02-26-2003, 11:02 AM
does anyone know how to solve the following error: sometimes the pages are loaded with all the " replaced by \" accross the complete page
this causes the page to be completely badly loaded.. it's accross the whole server on all the (different sorts of) sites, so it can't be linked to a single php-framework-script
we haven't made any major configuration changes, so that couldn't be it either..
how can we find the error? php debug log of some sort?
does anybody know the error??
brulbuik
choon
02-26-2003, 11:08 AM
I think this is due to magic quotes and you can read about it at http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-runtime and http://www.php.net/manual-lookup.php?pattern=magic_quotes&lang=en
I might be wrong though :)
Thanks.
Kindest regards,
Choon
brulbuik
02-26-2003, 11:15 AM
I know it has something to do with the magic quotes.. the problem is (I think) that php doesn't load it's ini completely and therefore doesn't use the magic quotes
what could be the cause??
open_basedir-restrictions?
include-path regulations?
choon
02-26-2003, 11:25 AM
No idea as if you can provide any URL with the problem then many of the others might be able to help you.
To test whether the php set the magic_quotes to on or off... simply create a php script like below:
<?php
if (get_magic_quotes_gpc() == 1) {
echo "magic_quotes_gpc is On.\n";
} else {
echo "magic_quotes_gpc is Off\n";
}
if (get_magic_quotes_runtime() == 1) {
echo "magic_quotes_runtime is On.\n";
} else {
echo "magic_quotes_runtime is Off\n";
}
?>
I am not sure your about php.ini is loaded completely as I just issue this command in shell to check all the loaded modules in PHP as CGI:
# /usr/bin/php -m
By the way, did you try to restart your httpd to see whether your problem is still there?
Do a search in google about your problem might help ;)
Thanks.
Kindest regards,
Choon