pecl channel-update pecl.php.net
pecl clear-cache
pecl install xdebug
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
| # откатываем последний коммит, но не удаляем изменения | |
| git reset HEAD~ --soft | |
| git add . | |
| git stash | |
| # переключаемся на нужную ветку | |
| git checkout имя-верной-ветки | |
| git stash pop | |
| git add . | |
| git commit -m "тут ваш комментарий" | |
| # теперь изменения в нужной ветке |
Для большинства PHP-приложений достаточно использовать jQuery-плагин. Он проще в подключении и красиво выглядит. Используйте прямую работу с API на PHP только в том случае, если вы твёрдо уверены, что jQuery-плагин не подходит.
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
| import ftplib | |
| import os | |
| import re | |
| """ | |
| MIT license: 2017 - Jwely | |
| Example usage: | |
| ``` python | |
| import ftplib |
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
| 0 22 * * 1,2,3,4,5 /path/to/git_changes.sh /path/to/projects/ # Sends 5 PM EST if server time is UTC | |
| 0 21 * * 5 /path/to/git_changes.sh -w /path/to/projects # Sends Friday @ 4PM EST if server time is UTC |
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
| <? | |
| define('LOG_FILENAME', __DIR__.'/log/'.date('Ymd').'.log'); | |
| require_once($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/main/include/prolog_before.php'); | |
| use Bitrix\Main\Loader; | |
| Loader::includeModule("iblock"); | |
| Uplab\Helper::loadMainMsg(); | |
| use Bitrix\Main\Localization\Loc; | |
| <!-- for result_modifier.php --> |
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
| ''' | |
| HTTP Reuests has following parameters: | |
| 1)Request URL | |
| 2)Header Fields | |
| 3)Parameter | |
| 4)Request body | |
| ''' | |
| #!/usr/bin/env python | |
| import requests |
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
| <? | |
| require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); | |
| $APPLICATION->SetTitle("Экспорт списка юзеров и получателей рассылок"); | |
| $expSubscribesFile = 'subscribes.csv'; | |
| $expUsersFile = 'users.csv'; | |
| $strDlmtr = ';'; | |
| $lineDlmtr = "\n"; | |
| $arUsers = array('#,Фамилия,Имя,Отчество,EMail'); |
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 | |
| include_once 'google-api-php-client/vendor/autoload.php'; | |
| $client = new Google_Client(); | |
| $application_creds = 'service-account-credentials.json'; | |
| $credentials_file = file_exists($application_creds) ? $application_creds : false; | |
| define("SCOPE",Google_Service_Calendar::CALENDAR); | |
| define("APP_NAME","Google Calendar API PHP"); |
статья с описанием - http://habrahabr.ru/post/233243/
Поулчаем список городов http://weather.yandex.ru/static/cities.xml https://pogoda.yandex.ru/static/cities.xml