我没有得到调试输出。我确实启用了扩展程序。
PHP('upload.php'):
include '/opa/ChromePhp.php'; //Wrong path maybe, I already tried just 'ChromePhp.php'?
ChromePhp::log('Hello console!');
ChromePhp::log($_SERVER);
ChromePhp::warn('something went wrong!');
JS(在“ index.html”内部):
function uploadText(text) {
var data = new FormData();
data.append("data" , text);
var xhr = (window.XMLHttpRequest) ? new XMLHttpRequest() : new activeXObject("Microsoft.XMLHTTP");
xhr.open( 'post', '/opa/upload.php', true );
xhr.send(data);
}