Skip to content

Instantly share code, notes, and snippets.

View Kaile's full-sized avatar

Mikhail Kaile

View GitHub Profile
<?php
// Standard inclusions
include("pChart/pData.class");
include("pChart/pChart.class");
include("RequestString.php");
//Конект с БД
$host="localhost";
$user="root";
$pwd="7zippswd";
SELECT dbo_fakultet.name AS Факультет,
dbo_spec.name AS Специальность,
dbo_obrazovanie.name AS Образование,
dbo_study_form.name AS ["Форма обучения"],
dbo_gruppa.name AS Группа,
Count(dbo_student.student_id) AS ["Количество заявлений"],
dbo_study_form.spravkaSB,
dbo_student.budjet,
IIf((dbo_student.finance=-1),"Да","Нет") AS Бюджет,
Count(dbo_student.id) AS ["Количество людей"]
@Kaile
Kaile / nginx.conf
Created March 30, 2023 12:28 — forked from sgomez84/nginx.conf
Nginx Proxy Pass to PHP-FPM
upstream phpfpm {
#server unix:/var/run/php5-fpm.sock;
#avoid sockets for nginx-fpm on Linux, they are good for BSD
server 127.0.0.1:9000;
}
server {
listen 8080;
server_name sumhr.com;
rewrite ^(.*) $scheme://www.sumhr.com$1 permanent;