Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> zamiana stringow
cieply
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: --
Skąd: Kosewo

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


Mam taki kawalek skryptu:

<?php
$fd = fopen("./oesy/".$os, "w");
while (!feof($fd)) {
$buffer = fgets($fd, 1024);

ereg_replace ("<TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial CE" COLOR=#000000>", "<td class=maintext>", $buffer);
ereg_replace ("</FONT></TD>", "</td>", $buffer);
}
fclose ($fd);
echo ("DONE (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) ");

?>


Chcialem, zeby mi zamienialo jedne znaczniki na drugie ale niestety ni dziala (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

Pozdrowionka
Cieply
Go to the top of the page
+Quote Post
-admin-
post
Post #2





Goście







Linie:
ereg_replace ("<TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial CE" COLOR=#000000>", "<td class=maintext>", $buffer);
zastap:
$buffer = ereg_replace ("<TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial CE" COLOR=#000000>", "<td class=maintext>", $buffer);
No i jeszcze dla upewnienia sie mozesz ereg_replace zamienic na eregi_replace.
Go to the top of the page
+Quote Post

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: 23.08.2025 - 07:15