Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么php脚本可以在免费主机上运行,而在我的vps上却不能';T_Php_Server_Vps - Fatal编程技术网

为什么php脚本可以在免费主机上运行,而在我的vps上却不能';T

为什么php脚本可以在免费主机上运行,而在我的vps上却不能';T,php,server,vps,Php,Server,Vps,为什么在一台服务器上发生错误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上的此脚本: (正确工作)此脚本在免费主机上运行: 伙计,可

为什么在一台服务器上发生错误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上的此脚本:

(正确工作)此脚本在免费主机上运行:

伙计,可能已禁用允许url fopen配置


检查错误日志。^^和/或在php页面顶部添加:
ini\u集(“显示错误”,“打开”);ini_集('html_错误',0);错误报告(-1)是的。就是这样。谢谢:)