something about me
moldauder / moldauder.github.com Goto Github PK
View Code? Open in Web Editor NEWsomething about me
something about me
//TODO
brew install nginx
/usr/local/etc/nginx
conf.d
目录,放置虚拟站点配置文件autoindex on
。未启用此配置时如访问http://127.0.0.1
,会出现403错误,配置后会列出目录结构。还有可能是目录的权限问题,这个需要另行解决sudo nginx
nginx -h
可以直接使用mac自带的php
、php-fpm
,启动:sudo /etc/sbin/php-fpm
header函数的定义如下:
void header ( string $string [, bool $replace = true [, int $http_response_code ]] )
代码如下:
header('Location: http://www.google.com', TRUE, 200);
此时,如果要传递http_response_code
,那么应该是302,此时的200应该是错误的。而根据手册上的描述:
The second special case is the "Location:" header. Not only does it send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless the 201 or a 3xx status code has already been set.
也就是当发送Location
头时,需要返回302
状态码(除非设定了201和3xx状态码)。实际情况是:
根据手册的描述,nginx+php-fpm进行了正确的处理。
like
dlopen(xxxxx.bundle, 9): Library not loaded: xxxx.dylib (LoadError)
then
otool -L xxxxx.bundle
show result
xxxx.dylib (compatibility version 18.0.0, current version 18.0.0)
then
install_name_tool -change xxxx.dylib right_dylib_path xxxxx.bundle,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.