将php网站上传到altervista.org时出错

时间:2014-09-18 17:46:02

标签: php syntax-error web-hosting

我尝试使用XAMPP在本地运行我的网站并且它可以工作,但是当我在alter vista.org(网络托管)上传它时,它会给我错误:

  

解析错误:语法错误,意外' ['在   第12行/membri/mananbum/downloadTest.php

似乎解析器并不理解$ html-> find(' li [class = example]')会返回一个向量。

<?php
require_once("simple_html_dom.php");

if (isset($_GET['richiama']))
{
    $link = $_GET["link"];
    $html = file_get_html($link);
    $ret = $html->find('li[class=example]')[0];
...
}
else
{
    // Form
?>
<form name="richiamo_funzione" action="" method="GET">
<input type="text" name="link" value="http://example.com"/><input type="submit" name="richiama" value="download"/>
</form>
<?php
}
?>

有什么建议吗?

0 个答案:

没有答案
相关问题