Есть phpbb форум.Хочу автоматизировать добавление пользователей.Нашёл что это можно сделать через встроенную функцию user_add,в которую передаётся массив. В корне форума создал 123.php PHP: <?php define('IN_PHPBB', true); /* set scope for variables required later */ global $phpbb_root_path; global $phpEx; global $db; global $config; global $user; global $auth; global $cache; global $template; Echo('1'); # your php extension $phpEx = substr(strrchr(__FILE__, '.'), 1); $phpbb_root_path = ; /* includes all the libraries etc. required */ require($phpbb_root_path ."common.php"); $user->session_begin(); $auth->acl($user->data); /* the file with the actual goodies */ require($phpbb_root_path ."includes/functions_user.php"); /* All the user data (I think you can set other database fields aswell, these seem to be required )*/ $user_row = array( 'username' => "Username", 'user_password' => md5("Password"), 'user_email' => "Email", 'group_id' => $default_group_id, 'user_timezone' => '1.00?, 'user_dst' => 0, 'user_lang' => 'en', 'user_type' => '0?, 'user_actkey' => ", 'user_dateformat' => 'd M Y H:i', 'user_style' => $not_sure_what_this_is, 'user_regdate' => time(), ); /* Now Register user */ $phpbb_user_id = user_add($user_row); Echo('Импорт таблиц на сервере завершён'); ?> теперь хочу вызвать её из броузера( в дальнейшем буду вызавть её своими програмами) пишу .../forum/123. получаю HTTp/1.1 404 Not Found. Как вызывать данную функцию
PHP: define('IN_PHPBB', true); /* set scope for variables required later */ global $phpbb_root_path; global $phpEx; global $db; global $config; global $user; global $auth; global $cache; global $template; Echo('1'); # your php extension $phpEx = substr(strrchr(__FILE__, '.'), 1); $phpbb_root_path = ; /* includes all the libraries etc. required */ require($phpbb_root_path ."common.php"); $user->session_begin(); $auth->acl($user->data); . . . . . набираю в браузере mydomen.com/forum/123.php,а Echo('1'); не вижу. И с базой ничего не происходит.