![]() |
Помогите с готовым скриптом. Дурная ошибка.
Я написал скриптец, а компилятор выдает ошибку в строке "?>" Мож хто поможет?
Скрипт первый: <? include("./inc/header.inc.php"); include("./inc/nav_bar.inc.php"); include("./inc/news.inc.php"); include("./inc/down.inc.php"); if (isset($b)){ if (file_exists("../body/"."$b".".inc.php")) { include ("../body/"."$b".".inc.php") ; } if (isset($podcatal)) { if (isset($fil)) { if (file_exists("../pos/"."$podcatal"."/$fil"."pos.php")) { include ("../pos/"."$podcatal"."/"."$fil"."pos.php"); } } else { include("../inc/err.inc.php"); } if ($b=="poslugi") { include("../pos/shmindex.pos.php"); } else { include ("../body/index.inc.php"); } ?> Второй: <? if (isset ($podcatal)) { $dir=opendir("../pos/"."$podcatal"."/"); chdir("../pos/"."$podcatal"."/"); echo "<table width=100%>"; while($sod=readdir("$dir")) { if (is_file("$sod")) { $obr=join('',file("../pos/"."$podcatal"."/"."$sod")); $from = strpos("$obr","<title>"); $to = strpos("$obr","</title>"); $len = $to-$from; $nam= substr("$obr","$from","$len"); echo "<a href=index.hph?b=poslugi>$nam</a>; } ?> Помогите......:wacko: |
Кавычка в одной из последних строк не закрыта.
<? if (isset ($podcatal)) { $dir=opendir("../pos/"."$podcatal"."/"); chdir("../pos/"."$podcatal"."/"); echo "<table width=100%>"; while($sod=readdir("$dir")) { if (is_file("$sod")) { $obr=join('',file("../pos/"."$podcatal"."/"."$sod")); $from = strpos("$obr","<title>"); $to = strpos("$obr","</title>"); $len = $to-$from; $nam= substr("$obr","$from","$len"); echo "<a href=index.hph?b=poslugi>$nam</a>"; } ?> |
Спасибо. А то я морочился неделю...
Но все равно не пашет, может ошибка в версии PHP или Apach'a |
| Часовой пояс GMT +4, время: 20:23. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.