Answer the question
In order to leave comments, you need to log in
Why is the data sent by the PUT method turned out to be empty inside Yii?
I have ubuntu 14.04, NGINX server, PHP 5.5.9
In the index itself, if I write the output file_get_contents('php://input'), before $application->run(); all the data sent is there.
Further it is empty, And in /vendor/yiisoft/yii2/web/Request.php in the getRawBody function is empty.
Where to dig, what to watch?
Answer the question
In order to leave comments, you need to log in
The question was solved by a complete cleaning of vendor and repeated reinstallation through composer, from root.
Prior to PHP 5.6, a stream opened with php://input could only be read once. The stream does not support seek operations. However, depending on the implementation of the SAPI interface, it may be possible to open another php://input stream and repeat the read. This is only possible if the request body is pre-stored. This is typical for a POST request, but not for other request methods such as PUT or PROPFIND.
Cloud 9 - here is a cloud ide specifically for javascript development
github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger I
checked that debugging works on Hello Worlds.
I maintain a repository with JSDocs under Eclipse JSDT (it will work for other IDEs) for various projects that I use in my work: github.com/sergeche/jsdt-docs
There is also a Node.JS in some form: github .com/sergeche/jsdt-docs/blob/master/node.js
Use something like this:
There is also a VJET IDE: www.ebayopensource.org/index.php/VJET/HomePage
There is support for Node.js out of the box
/** @type NodeHttpModule */
var http = require('http');
http. // code complete here
Komodo IDE - haven't seen anything better, or just come across a little on the way? In any case, satisfies all desires) And already in alpha 7 there is support for node.js: announce
WebStorm 3 has completion and debugging for Node.JS, see
blog.jetbrains.com/webide/2011/11/webstorm-your-node-app/
WebStorm, how to set up, see http://www.youtube.com/watch?v=ILpS4Fq3lmw
For debugging, look towards sublime + node-inspector - how to work with it - http://www.youtube.com/watch?v =COHIRHitRdc
Every sandpiper praises his swamp :)
Here are holivars with arguments and in comparison. Relevance again.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question