Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wyrażenie regularne
ensei
post
Post #1





Grupa: Zarejestrowani
Postów: 50
Pomógł: 4
Dołączył: 30.04.2008

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


Hej, wiecie może czemu to nie śmiga?
  1. $Fileww = 'Call to undefined function ha()...line: 2 in /home/xxx/domains/xxx.a/public_html/index.php';
  2. $String = 'Call to undefined function ha()...line: 2 in /home/xxx/domains/xxx.a/public_html/index.php';
  3.  
  4. if(preg_match("#$String#im", $Fileww))
  5. echo 'found';


Ten post edytował ensei 6.11.2012, 17:57:27
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
semafor1985
post
Post #2





Grupa: Zarejestrowani
Postów: 61
Pomógł: 3
Dołączył: 18.10.2012
Skąd: Zagłębie Dąbrowskie

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


jeżeli już musisz preg_match to tak zadziała:

  1.  
  2. $Fileww = 'Call to undefined function ha()...line: 2 in /home/xxx/domains/xxx.a/public_html/index.php';
  3. $String = '/[Call to undefined function ha()...line: 2 in \/home\/xxx\/domains\/xxx.a\/public_html\/index.php]+/im';
  4.  
  5. if(preg_match($String, $Fileww))
  6. echo 'found';
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: 14.10.2025 - 15:47