HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Custom php.ini settings field format. (http://www.howtoforge.com/forums/showthread.php?t=52299)

scottrill2 15th April 2011 04:32

Custom php.ini settings field format.
 
I had a quick question about how the formatting (word wrap?) occurs in the "Custom PHP.ini Settings" Box/field.



I have a bunch of php settings saved in a regular text doc. In the doc it appears like so:

Code:

# Protect mail forms against spammer attacks (Effectively disables any headers
# injected from user input. Very important.
suhosin.mail.protect=2



It is all nice and neat with each line having either a comment character followed by text to remind me what the heck it does, or it has the command itself.

Now when I paste the commands into the custom php.ini settings box in ISPConfig 3 it butchers it sorta. I don't whether it is because of word wrapping or what. But it looks like so:


Code:

# Protect mail forms against spammer attacks (Effectively
disables any headers
# injected from user input. Very important.
suhosin.mail.protect=2


Do I need to do anything special when I paste into that box? Do I need to add another "#" infront of "disables" ? Will the way it is displayed return an error or perhaps not let the php setting be applied?


Thanks as always folks,

Scott

falko 15th April 2011 14:24

I guess this happens because of automatic word wrapping. I don't think ISPConfig adds a line break, so I don't think you have to add another #.


All times are GMT +2. The time now is 19:14.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.