php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_value error_log /home/path/public_html/domain/PHP_errors.log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Прокрутка страницы к заданному элементу*/ | |
$("#button").click(function() { | |
$('html, body').animate({ | |
scrollTop: $("#myDiv").offset().top | |
}, 2000); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*---------------------------------------- | |
| Инструкции и примеры по работе с PDO | | |
----------------------------------------*/ | |
/** | |
* Подключение к базе данных | |
*/ | |
try { | |
$db = new PDO('mysql:host=localhost;dbname=database;charset=UTF8','user','password'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Show Errors | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
/** | |
* Cyrillic to Latin transliteration via PHP Transliterator class | |
*/ | |
$rus = 'привет'; |
How to setup npm proxy settings behind HTTP and HTTPS proxy on Windows
In your user home dir create file .npmrc
with your username and password:
proxy = http://user:[email protected]:8080
OlderNewer