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