На денвери нормально пашет а на хостинг залил и не отображается страница!Что не так?
<?php
define('_IN_JOHNCMS', 1);
$textl = 'Название страницы';
$rootpath = '../';
require_once ('../incfiles/core.php');
require_once ('../incfiles/head.php');
switch ($_GET["s"])
{
case 'scan':
$f = stripslashes(trim($_POST["url"]));
$input = htmlspecialchars(stripslashes(trim($_POST["input"])));
$file = @file_get_contents($f);
if (!$f)
{
echo "Вы не ввели адрес - <a href=\"index.php\">Еще раз";
}else{
$url = str_replace("https", "http", $f);
if(!preg_match('#^(http\:\/\/){1}[-a-z0-9_\.]+[-a-z0-9_\.]+[_-a-Z0-9\.]?#i', $url))
{
echo "Адрес имеет не верный формат! Адрес может начинаться только с http://
}else{
echo "Код:
";
if ($input == "yes")
{
}else{
echo "<form action=\"index.php?s=scanage\" method=\"post\">";
}
echo "<textarea cols=\"50\" rows=\"30\" name=\"age\">$file</textarea>
";
if ($input == "yes")
{
$fo = fopen ("files/$arand.txt", "w+");
$str = "$file";
fputs ($fo,$file);
echo "<a href=\"files/$arand.txt\">Скачать txt</a>";
}else{
echo "<input type=\"submit\" value=\"Сохранить txt\">";
echo "</form>";
}
}
}
break;
case 'scanage':
$age = stripslashes(trim($_POST["age"]));
$fo = fopen ("files/$arand.txt", "w+");
$str = "$age";
fputs ($fo,$age);
echo "Код:";
echo "<textarea cols=\"50\" rows=\"30\" name=\"age\">$age</textarea>
";
echo "<a href=\"files/$arand.txt\">Скачать txt</a>";
break;
default:
echo "Сканер сайтов:
";
echo "
<form action=\"index.php?s=scan\" method=\"post\">
Адрес:
<input type=\"text\" name=\"url\" value=\"http://\">
Сохранить в файл
<input type=\"checkbox\" name=\"input\" value=\"yes\">
<input type=\"submit\" value=\"Скан\">
</form>
";
break;
}
require_once ('../incfiles/end.php');
?>