Announcement

Collapse
No announcement yet.

vb's redirect...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vb's redirect...

    I have a couple of scripts which import new forums everyday into the database,
    so i decided to put them in the scheduled tasks of the VB3 admincp,

    to avoid having to put 7 scheduled tasks. i linked the relevant ones together so that when one script finishes it redirects to the next one needed! Problem is standard redirecting doesnt work (because VB outputs some stuff and thus I get the error
    "Cannot add header information - headers already sent by..."
    so i'm guessing i need to use VB3 redirect mode...
    looking at it from other files i think its something like this...
    (as seen in admincp/misc.php)
    PHP Code:
    print_cp_redirect("misc.php"); 
    or
    PHP Code:
    define('CP_REDIRECT''misc.php'); 
    what file do I need to include so that this will work?

  • #2
    if I use the

    PHP Code:
     define('CP_REDIRECT''misc.php'); 
    do my scripts have to be in the admin folder of htdocs

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X