[PHP] restrict fsockopen spam etc.

2008-12-10 Thread Andre Hübner
Hello List, in last times i recognize that some scripts/formmailer of customers get abused by spammers. Some scripts avoid to use smtp-server and do smtp-dialog by its own using fsockopen etc. Problem ist that if mails are sent by fsockopen directy to other servers they not occur in server-mail

[PHP] php 5.2.8 error_log - relative paths

2008-12-18 Thread Andre Hübner
Hello, i use in .htaccess php_flag log_errors 1 php_value error_log folder/file seems to be a new behavior that folder/file must be a absolut value. relativ path/file raises an open_basedir error which is set up in httpd.conf but folder/file is not outside open_basedir and is writeable. Is thi

[PHP] php_value error_log realtive path in 5.2.8

2009-01-12 Thread Andre Hübner
Hi, please can someone try to add a logging with .htaccess and use a relative path to logfile? I always get an open_basedir error... open_basedir and document_root of domain points to: /path/path/ In /path/path/ is located the .htaccess with: php_flag log_errors on php_value error_log subpath/

[PHP] bug or expected, mbstring.func_overload not changeable by .htaccess 5.2.8/5.2.9

2009-04-14 Thread Andre Hübner
Hello, following in my .htaccess works with php 5.2.6 (mod_php) php_value mbstring.func_overload 2 Seems that since (5.2.7?) 5.2.8/5.2.9 this value is not any more accepted by php in .htaccess. mbstring.func_overload should be changeable by PHP_INI_PERDIR which includes .htaccess Other values

Re: [PHP] bug or expected, mbstring.func_overload not changeable by .htaccess 5.2.8/5.2.9

2009-04-16 Thread Andre Hübner
Hello, Besides the .htaccess which might be an apache configuration problem if you use ini_set("mbstring.func_overload",2) in a script of this directory does it work? no, also the ini_set does not work for this Directive. In addition to this heck your apache configuration to see if you allow

Re: [PHP] bug or expected, mbstring.func_overload not changeable by .htaccess 5.2.8/5.2.9

2009-04-23 Thread Andre Hübner
Hello, Sorry for the late reply. no problem. The ini_set is meant to be used inside a php script not in an .htaccess file. So perhaps you could test this in a script specific manner. i know;) i do php/apache for some years... i found out the problem in meanwhile. http://bugs.php.net/bug.php?

[PHP] Re: How to stop E_DEPRECATED messages in the PHP log?

2009-07-08 Thread Andre Hübner
Hello, Try error_reporting(E_ALL ^ E_DEPRECATED); Thanks for your suggestion - it would work nicely, except that that is a runtime function that is called within a script. but if it works within script you could do it by auto_prepend_file to stop flooding the log until solution is found..

[PHP] successful compiled, but errors at use

2008-01-23 Thread Andre Hübner
Hi List, my Situation is as follows. I use on suse 10.1 apache2 and php5 as modul and php5 as cgi using mod_fcgid For some tests i also want to have a php4 as second cgi I compiled with this configure-line: ./configure --prefix=/usr/ --datadir=/usr/share/php/ --bindir=/usr/bin/ --libdir=/usr/sh