![]() |
help using admincp/misc.php?do=update forum
I want to run the same function thats run when you click the
'update forum info' button in admincp/import&maintenance/update counters and I think that is the "update forum" in the misc.php how can I execute this function from another script i wrote??? |
you have to require functions_databuild.php
and then this function will help you: PHP Code:
|
ok did that...
i have this: PHP Code:
PHP Code:
"Fatal error: Call to undefined function: fetch_foruminfo() in /www/forum/htdocs/includes/functions_databuild.php on line 78" it doesnt find the fetch_foruminfo() function for some reason! Do i maybe have to put the script i wrote in the same directory as the functions_databuild.php??? |
erm, you have to make sure, that you have global.php required in your script as well, as that file includes other important files as well..
|
and when i have
PHP Code:
Fatal error: Failed opening required './includes/init.php' (include_path='.:/usr/local/lib/php') in /www/forum/htdocs/global.php on line 18 or Parsing functions.php Time before: 1086698586.0523 Fatal error: Failed opening required './includes/functions.php' (include_path='.:/usr/local/lib/php') in /www/forum/htdocs/global.php on line 37 when i tried to comment out the first include. it always seems to be an include of an include! what am i doin wrong? |
your script is in the wrong directory.
you can place it in the forum directory itself, or you do a chdir() before you do the include. |
All times are GMT. The time now is 03:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|