![]() |
|
#11
|
|||
|
|||
|
I did as suggested and also changed the php.ini.default to php.ini and nothing changed. Also had just a php.ini file with magic_quotes_gpc = Off in it and still phpinfo shows that they are on. I added an if statement to my file:
if (get_magic_quotes_gpc()){ $_GET = array_map('stripslashes', $_GET); $_POST = array_map('stripslashes', $_POST); $_COOKIE = array_map('stripslashes', $_COOKIE); } so I guess it's not a problem if it's not off but I'm stumped as to why php.ini is not working. And thank you for the help. |
|
#12
|
|||
|
|||
|
i'm trying to do the same thing. i use bh and i cant seem to find my php.ini. where is it?
|
|
#13
|
||||
|
||||
|
Quote:
If you haven't needed to change any of the default settings before then the file may not exist because you only need it to contain those commands where you want to override the defaults.
__________________
Stephen Chapman Free Computer Help Computer Help Blog Computer Help Forum Web Development eBooks and software JavaScript scripts and tutorials |
|
#14
|
|||
|
|||
|
Thanks for your response.
I found it i tried using all the php's that bluehost offers; php5, php5(single php.ini) and fastcgi, but i haven't been able to solve my issue. i'm trying to install phpwebsite and i keep getting the error saying magic quotes are enabled. i keep editing the php.ini changing the line from "magic_quotes_gpc = On" to "magic_quotes_gpc = Off" also have been changing the file name from php.ini.default to php.ini tried to add it on both the locations public_html and the location that i have the phpwebsite to be installed. I dont know what else i should do to fix this problem. let me know if you know where i'm doing wrong or what else i should try. |
|
#15
|
||||
|
||||
|
You might try asking support since at least they will be able to see exactly what you have done and therefore be able to see what is wrong.
__________________
Stephen Chapman Free Computer Help Computer Help Blog Computer Help Forum Web Development eBooks and software JavaScript scripts and tutorials |
|
#16
|
|||
|
|||
|
Does the server need to be restarted after modifying the php.ini file?
|
|
#17
|
||||
|
||||
|
No. If it did then we'd be unable to update our php.ini files since there is no way that BlueHost would allow a server to be restarted for that reason as it would have the hundreds of other account owners on the server annoyed at them for having taken their sites down to do the reboot.
__________________
Stephen Chapman Free Computer Help Computer Help Blog Computer Help Forum Web Development eBooks and software JavaScript scripts and tutorials |
|
#18
|
|||
|
|||
|
What if you have multiple addon domains. Would you still recommend placing php.ini in your root public_html folder? If not, then would you recommend using php5 single file?
I am trying to install a url shortener script and the included .htaccess file uses php_flag and php_value but is only for globals off, magic off, and display errors off. Anyone heard of FileETag none or ServerSignature Off? There's no help on this in the FAQ. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|