$keslan = explode("Article Body:",$baglan);
$keslan = explode("",$keslan[1]);
echo $keslan[0]; olarak deneyin.
Hata verdi
dosya.php
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9" />
<?
$baglan = file_get_contents("1.txt");
preg_match_all("#Title:(.*?)Word Count:#s", $baglan, $baslik);
preg_match_all("#Summary:(.*?)Keywords:#s", $baglan, $kisa);
preg_match_all("#Keywords:(.*?)Article Body:#s", $baglan, $kelime);
preg_match_all("#Article Body:(.*?)#s", $baglan, $metin);
$keslan = explode("Article Body:",$baglan);
$keslan = explode("",$keslan[1]);
echo $keslan[0];
for ($i=0; $i<count($baslik[1]); $i++)
{
$txtbaslik=$baslik[1][$i];
$txtkisa=$kisa[1][$i];
$txtmetin=$metin[2][$i];
$txtkelime=$kelime[1][$i];
echo $txtbaslik;
echo "<br>";
echo $txtkisa;
echo "<br>";
echo $txtmetin;
echo "<br>";
echo $txtkelime;
}
?>çıktısı
Warning: explode() [function.explode]: Empty delimiter in C:\xampp\htdocs\index.php on line 12
4 Necessary Steps You Should Take When You are Online
Learn how to stay protected when you are online. Your PC can be infected by harmful objects when you are on the internet.
untivirus, untiadware, untispyware, adware, PC, protection, internet, online, firewall, software, computer