W jaki sposób wyswietlic na stronie kod źródłowy innej strony?
Chodzi mi o wyświetlenie tego co widzimy jak klikniemy prawym przyciskiem myszy na stronie a potem na pokaż źródło.
Ale to juz nie dziala:
<? // bbcode Function bbcode($str){ return $str;} ?>
Co poprawic w tym kodzie?
<?php // bbcode Function bbcode($str){ return $str;} ?>
<? // bbcode Function bbcode($str){ return $str;} ?>
<? $sName='trok'; $sStr = preg_replace("!(?:.*)<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR=#505050><TD COLSPAN=2 CLASS=white><B>Character Information</B></TD></TR>(.*?)</TABLE>(?:.*)!is", "1", $sCode); foreach($aInfo[1] AS $iKey => $sWhat) { $aInfos[$sWhat] = $aInfo[2][$iKey]; } ?>