Chrome记录器未使用PHP输出

时间:2019-04-18 11:43:05

标签: php google-chrome debugging

我没有得到调试输出。我确实启用了扩展程序。

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);
}

启用了XHR日志记录的Chrome控制台: enter image description here

Chrome网络标签:(不是正在加载ChromePhp,还是客户端看不见它?) enter image description here

文件结构(这些文件位于“ /domains/degeneracy.nl/public_html/opa/”中): enter image description here

0 个答案:

没有答案