civil
Guest
вопрос по require
Пишу
$path = "scripts/files/";
$show = "10";
$template = "<b>{number}.</b> <a href=\"{filelink}\">{filename} ({info})</a><br>";
require $path. "includes/mysql.php";
$temp_sql->connect($db);
при открытии открытии скрипта ошибка
Fatal error: main() [function.require]: Failed opening required 'scripts/files/includes/mysql.php' (include_path='.;C:\php5\pear') in d:\hst\test\http\scripts\files\top.php on line 16
16 строка это require $path. "includes/mysql.php";
Подскажите, что я могу делать не так
? Почему он пишет, что файл не найден, хотя в этой директории он есть?
Может можно как-то проверить в чем может быть ошибка?
Пишу
$path = "scripts/files/";
$show = "10";
$template = "<b>{number}.</b> <a href=\"{filelink}\">{filename} ({info})</a><br>";
require $path. "includes/mysql.php";
$temp_sql->connect($db);
при открытии открытии скрипта ошибка
Fatal error: main() [function.require]: Failed opening required 'scripts/files/includes/mysql.php' (include_path='.;C:\php5\pear') in d:\hst\test\http\scripts\files\top.php on line 16
16 строка это require $path. "includes/mysql.php";
Подскажите, что я могу делать не так
? Почему он пишет, что файл не найден, хотя в этой директории он есть?Может можно как-то проверить в чем может быть ошибка?
) хорошим языком написано... доходчиво