Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Php]Opóźnienie działania skryptu
Snap
post
Post #1





Grupa: Zarejestrowani
Postów: 75
Pomógł: 4
Dołączył: 29.05.2005

Ostrzeżenie: (0%)
-----


Witam.
Mam mały problem, chciałbym zrobić tak, żeby przed wczytaniem skryptu wywaliło mi komunikat "Musisz poczekać 5s" i po tych 5s wczytał by się dalej skrypt.

  1. <?php
  2. if (!defined('ATSPHP')) {
  3.  
  4. die("This file cannot be accessed directly.");
  5.  
  6. }
  7.  
  8.  
  9. class out extends in_out {
  10.  
  11. function out() {
  12.  
  13. global $CONF, $DB, $FORM;
  14.  
  15.  
  16. $username = $DB->escape($FORM['u']);
  17.  
  18. $this->record($username, 'out');
  19.  
  20. if (!$_GET['go']) {
  21.  
  22.  
  23. }
  24.  
  25. else {
  26.  
  27. list($url) = $DB->fetch("SELECT url FROM {$CONF['sql_prefix']}_sites WHERE username = 
  28.  
  29. '{$username}'", __FILE__, __LINE__);
  30. header("Location: {$url}");
  31.  
  32. }
  33.  
  34. }
  35.  
  36. }
  37.  
  38. ?>


Proszę o pomoc.


---
poprawiłem rażący błąd ortograficzny w temacie.
~siemakuba
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.12.2025 - 16:49