Answer the question
In order to leave comments, you need to log in
How to install from source under FreeBSD?
There is a problem installing nginx from source under FreeBSD.
1. Downloaded nginx 1.6 with wget from github.
2. Carried out the configuration:
./configure \
--prefix=/usr/local/etc/nginx \
--with-cc-opt='-I /usr/local/include' \
--with-ld-opt='-L /usr/local/lib' \
--conf-path=/usr/local/etc/nginx/nginx.conf \
--sbin-path=/usr/local/sbin/nginx \
--pid-path=/var/run/nginx.pid \
--error-log-path=/var/log/nginx.error.log \
--user=www \
--group=www \
--with-file-aio \
--with-ipv6 \
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp \
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp \
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp \
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp \
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp \
--http-log-path=/var/log/nginx-access.log \
--with-http_realip_module \
--with-http_stub_status_module \
--with-pcre \
--with-http_ssl_module \
--without-http_autoindex_module \
--without-http_uwsgi_module \
--without-http_scgi_module \
--add-module=/usr/home/admuser/ngx_devel_kit-master \
--add-module=/usr/home/admuser/ngx_http_set_hash-master \
default: build
clean: rm -rf Makefile objs
Answer the question
In order to leave comments, you need to log in
Show us what you can do and we'll fix it.
$re = "/token=([a-z0-9]+)/";
$str = "http://api.vk.com/blank.html#access_token=7ada2a9807c5e450ac7b0a144f6730dc49fc5d584054b1953c9ec9485a65a4ec74ee2264b70a4293b8888&expires_in=0&user_id=338880723";
preg_match($re, $str, $matches);
$token=$matches[1];
$url = "http://api.vk.com/blank.html#access_token=7ada2a9807c5e450ac7b0a144f6730dc49fc5d584054b1953c9ec9485a65a4ec74ee2264b70a4293b8888&expires_in=0&user_id=338880723";
$segments = explode('#', $url);
$hash = $segmetns[1];
foreach (explode('&', $hash) as $param) {
list($key, $value) = explode('=', $param);
$params[$key] = $value;
}
var_dump($params);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question