Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [preg_replace] co tu jest zle
GrayHat
post 18.01.2004, 18:43:23
Post #1





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

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


kod:
[php:1:a5ce669d14]<?php
$vars->body = preg_replace("/[link].*[/link]/", "<a href="//1">//1</a>", $vars->body);

?>[/php:1:a5ce669d14]

błąd:
Kod
Warning: Unknown modifier 'l' in C:usrwwwportfolioindex.php on line 9


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post
Seth
post 18.01.2004, 18:45:40
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

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


Kod
/[link](.*?)[/link]/
Go to the top of the page
+Quote Post
GrayHat
post 18.01.2004, 18:48:43
Post #3





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

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


thx seth a teraz widze ze i druga wartosc sie chrzani :/ co tam wstawnac? zamiast //1


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post
GrayHat
post 18.01.2004, 18:50:47
Post #4





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

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


[php:1:e6f1017970]<?php
$vars->body = preg_replace("/[link](.*?)[/link]/", "<a href="1">1</a>", $vars->body);

?>[/php:1:e6f1017970]

cos takiego mam ale cos zle wyswietla :/


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post
Seth
post 18.01.2004, 18:56:00
Post #5





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

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


[php:1:a163a307c0]<?php
$vars->body = preg_replace("/[link](.*?)[/link]/", "<a href="1">1</a>", $vars->body);
?>[/php:1:a163a307c0]
Go to the top of the page
+Quote Post
BzikOS
post 18.01.2004, 18:56:55
Post #6





Grupa: Przyjaciele php.pl
Postów: 660
Pomógł: 0
Dołączył: 28.08.2002
Skąd: Starachowice

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


[php:1:74b942b2a0]<?php
$vars->body = preg_replace("/[link](.*?)[/link]/s", "<a href="1">1</a>", $vars->body );
?>[/php:1:74b942b2a0]
Go to the top of the page
+Quote Post
GrayHat
post 18.01.2004, 19:27:08
Post #7





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

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


dzieki bziq wsio ladnie dziala biggrin.gif


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post

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: 31.07.2025 - 05:12