Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> preg_match, Błąd przy preg_match
MoD
post 11.09.2004, 19:53:51
Post #1





Grupa: Zarejestrowani
Postów: 193
Pomógł: 0
Dołączył: 14.09.2003
Skąd: Brodnica (koło Torunia)

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


Mam problem.

Mam kod
  1. <?php
  2. while ( $includes[] = preg_match( '/{includes\"(.+)\"}/', $this -> tpl ) )
  3. {
  4. $var++;
  5. }
  6.  
  7. for ( $i=0; $i<=count($includes); $i++ )
  8. {
  9. $file = $this -> IncludeFile( $includes[$i] );
  10.  
  11. $this -> tpl = str_replace( '{include \"'.$includes[$i].'\"}', $file, $this -> tpl );
  12. }
  13.  
  14. unset( $includes );
  15. unset( $var );
  16. ?>

i wyskakuje mi błąd
Kod
Fatal error: Maximum execution time of 120 seconds exceeded in c:\usr\krasnal\www\folder\plik.php on line 127

Linia 127 to
  1. <?php
  2. while ( $includes[] = preg_match( '/{includes\"(.+)\"}/', $this -> tpl ) )
  3. ?>

Czy wie ktoś może, jak naprawić ten błąd? Z góry dziękuję za pomoc.


--------------------
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 03:01