drdr
Новичок
Не срабатывает include "gallery.php?gal=".$gal_id;
Здравствуйте
Делаю переход по ссылке вида:
Затем делаю разбор id и вызов:
Переходить-то, вроде, переходит, но выдает ошибку:
В чем может быть проблема? Подскажите, пожалуйста. Новенькие мы 
Здравствуйте
Делаю переход по ссылке вида:
PHP:
http://site/index.php?id=gallery&gal=4
PHP:
$page_id = $_GET['id'];
$gal_id = $_GET['gal'];
...
switch($page_id)
{
case about:
include "about.php";
break;
case gallery:
263 include "gallery.php?gal=".$gal_id;
break;
case contacts:
include "contacts.php";
break;
default:
some default code;
...
}
PHP:
Warning: include(gallery.php?gal=4) [function.include]: failed to open stream: Result too large in site/index.php on line 263
Warning: include() [function.include]: Failed opening 'gallery.php?gal=4' for inclusion (include_path='.;/usr/local/php5/PEAR') in site/index.php on line 263
