Oto kod który mi sprawia kłopot: (pierwsza linijka kodu w pliku jest 32)
Kod
if($_GET['typ'] == "link")
{
$menu = file("moduly/menu/date/menu", 'r');
$path = split('>', $menu[$_GET['id']]);
//echo($path[1]);
if(ereg('php', $path[1]))
{
include($path[1]);
}
else if(ereg('html', $path[1]))
readfile($path[1]);
else
{
echo("<pre>");
readfile($path[1]);
echo("</pre>");
}
}
{
$menu = file("moduly/menu/date/menu", 'r');
$path = split('>', $menu[$_GET['id']]);
//echo($path[1]);
if(ereg('php', $path[1]))
{
include($path[1]);
}
else if(ereg('html', $path[1]))
readfile($path[1]);
else
{
echo("<pre>");
readfile($path[1]);
echo("</pre>");
}
}
I problem polega na tym iż nie mogę ani otworzyć ani zincludowac pliku. W logach jest tyle...
Kod
[Sat Dec 17 21:38:03 2005] [error] [client 127.0.0.1] php Warning: main( /home/services/httpd/html/moduly/news/index.php\n): failed to open stream: No such file or directory in /home/services/httpd/html/index.php on line 40, referer: http://127.0.0.1/?typ=link&id=6
[Sat Dec 17 21:38:03 2005] [error] [client 127.0.0.1] php Warning: main(): Failed opening ' /home/services/httpd/html/moduly/news/index.php\n' for inclusion (include_path='.:/usr/share/pear') in /home/services/httpd/html/index.php on line 40, referer: http://127.0.0.1/?typ=link&id=6
[Sat Dec 17 21:38:03 2005] [error] [client 127.0.0.1] php Warning: main(): Failed opening ' /home/services/httpd/html/moduly/news/index.php\n' for inclusion (include_path='.:/usr/share/pear') in /home/services/httpd/html/index.php on line 40, referer: http://127.0.0.1/?typ=link&id=6
Co radzicie ?

ps. prawa są ok, wydaje mi się że to wina znaku nowej linii (ten znak tam musi byc bo linijka jest z pliku pobierana).