Good morning!
Is there an easy way, perhaps with a php.ini, or a .htaccess file, to set the PHP/Apache configuration to more "production quality" settings?
Specifically, I would like to:
+ Disable Magic Quotes
+ Disable All Error Reporting
+ Enable All Errors Logging (e.g. E_ALL | E_NOTICE | E_STRICT)
Plus maybe some other things, like disabling PHP short tags, but for now, the above three items are the items I really care about.
With respect to the magic quotes setting, I don't need anyone to tell me about SQL injection attacks. I'd like to sanitize my data properly, not rely on a server misconfiguration/anti-feature to do it for me. I most certainly don't want to use strip_slashes with every access to incoming form data, as that would just produce fragile, and frankly incorrect, code. Not to mention that I'm using a PostgreSQL database, which uses Sybase-style escapes, not the C-style escapes used by MySQL (e.g. PostgreSQL uses '' (two single quotes) where-as MySQL would use \' and \\).
If anyone really cared at all about security, they'd disable error reporting in a hummingbird's heartbeat.
I didn't see these settings in cPanel, and I tried using a .htaccess file, but just got a 500, so I assume that the php_flag and php_value directives are disabled, which is perfectly acceptable in-and-of itself. I'm on chopin, if that's relevant.
Thanks!
Rob L
Is there an easy way, perhaps with a php.ini, or a .htaccess file, to set the PHP/Apache configuration to more "production quality" settings?
Specifically, I would like to:
+ Disable Magic Quotes
+ Disable All Error Reporting
+ Enable All Errors Logging (e.g. E_ALL | E_NOTICE | E_STRICT)
Plus maybe some other things, like disabling PHP short tags, but for now, the above three items are the items I really care about.
With respect to the magic quotes setting, I don't need anyone to tell me about SQL injection attacks. I'd like to sanitize my data properly, not rely on a server misconfiguration/anti-feature to do it for me. I most certainly don't want to use strip_slashes with every access to incoming form data, as that would just produce fragile, and frankly incorrect, code. Not to mention that I'm using a PostgreSQL database, which uses Sybase-style escapes, not the C-style escapes used by MySQL (e.g. PostgreSQL uses '' (two single quotes) where-as MySQL would use \' and \\).
If anyone really cared at all about security, they'd disable error reporting in a hummingbird's heartbeat.
I didn't see these settings in cPanel, and I tried using a .htaccess file, but just got a 500, so I assume that the php_flag and php_value directives are disabled, which is perfectly acceptable in-and-of itself. I'm on chopin, if that's relevant.
Thanks!
Rob L
Last edited: