![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 0 Dołączył: 20.09.2008 Ostrzeżenie: (20%) ![]() ![]() |
Witam
Robię przeglądarke www w PHP ale mam problem. Po dodaniu base do kodu strony robi się coś takiego że po naciśnięciu linku przekierowywuje z przeglądarki na stronę docelową. Oto mój kod: <br> ban <form method="GET"> <input type="text" name="co"> <input type="submit" value="szukaj"> </form> <? if (!empty($co)) { $fullurl = $co; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_FAILONERROR, 0); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_URL, $fullurl); $ila = $returned = curl_exec($ch); curl_close ($ch); $ila = str_replace("<head>","<head><base href='$co'>", $ila); $ila=str_replace("href=\"http://","href=\"",$ila); $ila=str_replace("href=\'http://","href=\"",$ila); $ila=str_replace("href=\"http://www.","href=\"",$ila); $ila=str_replace("href=\'http://www.","href=\"",$ila); $ila=str_replace("href=\"www.","href=\"",$ila); $ila=str_replace("href=\'www.","href=\"",$ila); $ila=str_replace("href=\"/","href=\"".$co,$ila); $ila=str_replace("href=\'/","href=\'".$co,$ila); $ila=str_replace("href=\"","href=\"http://www.aqq.vot.pl/ip.php?co=http://www.",$ila); $ila=str_replace("href=\'","href=\'http://www.aqq.vot.pl/ip.php?co=http://www.",$ila); echo $ila; } ?> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 19:00 |