Skip to content

Instantly share code, notes, and snippets.

View best-tech's full-sized avatar

Denis Kharchenko best-tech

View GitHub Profile
@best-tech
best-tech / README.md
Created March 18, 2017 07:16 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
#!C:/opt/oscript/bin/oscript.exe -cgi
ВывестиЗаголовок("Content-type", "text/html");
ВывестиЗаголовок("Content-Encoding", "utf-8");
ВывестиЗаголовок("Cache-control", "no-cache");
ПараметрыЗапроса = Новый Соответствие;
Для Каждого мКЗ Из ВебЗапрос.GET Цикл
ПараметрыЗапроса.Вставить(мКЗ.Ключ, мКЗ.Значение);
КонецЦикла;