Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> funkcja readfile i str_replace
gmmarcin
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 24.03.2008

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


Wesolych Swiat wszystkim, niestety nie moglem sobie z tym sam poradzic wiec prosze o pomoc.

potrzebuje funkcje ktora pobierze z serwera plik .html i pozmienia w nim wszystkie <a href na <a rel='lightbox' href - jak widzicie chce zintegrowac lightboxa z gotowym plikiem html.

<?php
@readfile("index.html");
$string = "<a href";
str_replace("<a href", "<a rel='lightbox' href", $string);
?>

znalazlem nawet cos podobnego tutaj:
http://forum.hotscripts.pl/pl-comp-lang-ph...-odnosnika.html

ale czy to jest woogle mozliwe z funkcja readfile? i czy woogle jest mozliwe to co chce?

na serwrze sa dwa pliki index.html i index.php serwer ma na sztywno priorytet php wiec wyswietla php jako 1wszy i to dziala...

strona to: roksana.marcingminski.com
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 Aktualny czas: 19.08.2025 - 11:49