<html> <head> <title>title</title> </head> <body> <?php $link="http://www.webteders.com/dersler/ders/C-C%2B%2B--Degiskenler/3"; $site=file_get_contents("http://www.webteders.com/dersler/ders/C-C%2B%2B--Degiskenler/3"); $title=explode('<title>',$site); $title=explode('</title>',$title[1]); <a href="$link"> $title[0] </a> ?> </body> </html>
I don't even want to know why you're doing this, but I'm going to give you a reply as informative as your original "question". http://us2.php.net/echo
Not sure why, But to answer the question, Follow this example: <html> <head> <title>title</title> </head> <body> <?php $link = "http://www.webteders.com/dersler/ders/C-C%2B%2B--Degiskenler/3"; $site = file_get_contents("http://www.webteders.com/dersler/ders/C-C%2B%2B--Degiskenler/3"); preg_match("/\<title\>(.*)\<\/title\>/", $site, $matches); $title = $matches[1]; ?> <a href="<?= $link ?>"><?= $title ?></a> </body> </html> PHP: