【发布时间】:2016-02-24 23:38:55
【问题描述】:
为什么在一台服务器上会出现500错误?我没有任何想法!
脚本 php:
<?php
require('simple_html_dom.php');
$html = file_get_html("//strona.pl/".$_GET['url'];);
$wynik= $html->find("klasa",0) ->innertext;
print_r($wynik);
?>
(错误 500)这个脚本在我自己的 vps 上: skrypt.php
(work corectlly) 免费主机上的这个脚本: androidpolska.php
【问题讨论】:
-
检查错误日志。
-
^^ 或在您的 php 页面顶部添加:
ini_set('display_errors', 'On'); ini_set('html_errors', 0); error_reporting(-1);