error_reporting(E_ALL);
ini_set('display_errors', 0);
ini_set('log_errors','on');
ini_set('error_log', __DIR__ . '/logs/main_error.log');php_value error_log logs/parse_error.logtry(){
}
catch(){
error_log($e->getMessage() . PHP_EOL, 3, __DIR__. '/logs/db_error.log');
} <a href="//google.com" onclick="return false">google</a><a href="//google.com">google</a>
<script>
document.getElementsByTagName('a')[0].onclick = function() {
return false;
}
</script> если sudo -u zabbix /usr/lib/zabbix/externalscripts/pyandex.py, то в ответ
sudo: unable to execute /usr/lib/zabbix/externalscripts/pyandex.py: Permission denied
>>> from timeit import timeit
>>> def f1(s1='foo', s2='bar'):
return ' - '.join((s1, s2))
>>> f1()
'foo - bar'
>>> def f2(s1='foo', s2='bar'):
return '{0} - {1}'.format(s1, s2)
>>> f2()
'foo - bar'
>>> def f3(s1='foo', s2='bar'):
return '%s - %s' % (s1, s2)
>>> f3()
'foo - bar'
>>> timeit(f1)
0.7238124336211288
>>> timeit(f2)
1.3038862714413124
>>> timeit(f3)
0.8215918286469828
#README.txt
This directory or its subdirectories should contain OpenVPN
configuration files each having an extension of .ovpn
When OpenVPN is started as a service, a separate OpenVPN
process will be instantiated for each configuration file.
When OpenVPN GUI is started configs in this directory are added
to the list of available connections