php

php for windows

config

location / {
    root   html;
    index  index.html index.htm index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
    root           html;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  D:/dev/nginx-1.13.4/html$fastcgi_script_name;
    include        fastcgi_params;
}

start

start nginx
php-cgi.exe -b 127.0.0.1:9000

check process

tasklist /fi "imagename eq nginx.exe"
nginx -s stop

Reserved Keywords

$_ENV["USER"]
$_SERVER['DOCUMENT_ROOT']

function

ref

What Else?
inflearn react api server -50% ํ• ์ธ์ฟ ํฐ: 15108-f2af1e086101 buy me a coffee