vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Redirecting Help Needed (https://vborg.vbsupport.ru/showthread.php?t=43789)

AnkisethGallant 09-21-2002 06:53 PM

Redirecting Help Needed
 
I've got a script that does a query. However, the query takes too long (over the 30 second limit). I have it working as a while command, but I know it's possible to split it up. I want to redirect it, but keep some of the variables. How do I do this? I don't need to redirect if I can at least refresh it.

TECK 09-22-2002 12:48 AM

you have to tell us more about what you are trying to do. if you simply want to refresh, you want to do it only once, or at regular intervals?

go ahead explain in details.

Issvar 09-22-2002 01:29 AM

Something like this:
Code:

<?php
if ($x=='') { $x=0; }
$y=$x+1000;
while ($x<$y) {
  // do your stuff
  $x++;
}
echo '<html><body>You got to: '.$x.'<script>location.href="'.$HTTP_SERVER_VARS['PHP_SELF'].'?x='.$x.'"; </script></body></html>';
?>


AnkisethGallant 09-22-2002 07:36 PM

That still does a query without refreshing the script, so it's really pointless Issvar.

I figured it out. After the loop, it would load an auto-refresh page with the url including all of the actions (i.e., index.php?action=this&variable=that). Then it would go back to the action and do it again until the loop was finished.


All times are GMT. The time now is 03:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00994 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete