亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

第二章第二節課圖片完全顯示不了,N種報錯

我的代碼:

http://img1.sycdn.imooc.com//56966dc600017f7406950623.jpg

瀏覽器顯示一大堆的報錯

Notice: Undefined offset: 0 in G:\wamp\www\jpgraph\jpgraph-3.5.0b1\src\jpgraph.php on line?5515

Notice: Undefined offset: 0 in G:\wamp\www\jpgraph\jpgraph-3.5.0b1\src\jpgraph.php on line?5480

Notice: Undefined offset: 0 in G:\wamp\www\jpgraph\jpgraph-3.5.0b1\src\jpgraph.php on line?5515

Notice: Undefined offset: 0 in G:\wamp\www\jpgraph\jpgraph-3.5.0b1\src\jpgraph.php on line?5480

Notice: Undefined offset: 0 in G:\wamp\www\jpgraph\jpgraph-3.5.0b1\src\jpgraph_line.php on line?209

瀏覽器最下方提示:

JpGraph Error:?HTTP headers have already been sent.
Caused by output from file?jpgraph.php?at line?5480.

Explanation:
HTTP headers have already been sent back to the browser indicating the data as text before the library got a chance to send it's image HTTP header to this browser. This makes it impossible for the library to send back image data to the browser (since that would be interpretated as text by the browser and show up as junk text).

Most likely you have some text in your script before the call to?Graph::Stroke(). If this texts gets sent back to the browser the browser will assume that all data is plain text. Look for any text, even spaces and newlines, that might have been sent back to the browser.

For example it is a common mistake to leave a blank line before the opening "<?php".


正在回答

2 回答

<?php
require_once?'../src/jpgraph.php';
require_once?'../src/jpgraph_line.php';

修改為:

<?php
require_once?'../jpgraph/jpgraph.php';
require_once?'../jpgraph/jpgraph_line.php';
還有就是數組鍵要從0開始比如:0=>10,1=>12……


0 回復 有任何疑惑可以回復我~

上面圖片我沒顯示到第一行,具體是這樣的

<?php

require_once '../src/jpgraph.php';

require_once '../src/jpgraph_line.php';


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

第二章第二節課圖片完全顯示不了,N種報錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號