请解释一下错误的原因是什么......?
我看不到课程,但我没有看到任何require error
var_dump(12);
require('http://dev.credicom.de/spreadsheet/php-excel-reader/excel_reader2.php');
require('http://dev.credicom.de/spreadsheet/SpreadsheetReader.php');
$Reader = new SpreadsheetReader();
foreach ($Reader as $Row)
{
print_r($Row);
}
die('priehali');
我收到以下错误:
Fatal error: Class 'Spreadsheet\SpreadsheetReader' not found in /www/htdocs/w00e163f/credicom.de.dev/content/importExcel.php on line 14
答案 0 :(得分:0)
require应具有文件的物理路径,而不是URL
require(__DIR__.'excel_reader2.php');