View Single Post
  #6 (permalink)  
Old 05-12-2008, 05:32 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 785
Last Blog:
Programming "Just a ...
Credits: 102
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: How to take the true name of the site from the URL

Quote:
Originally Posted by John View Post
PHP Code:
<?php
$content 
file_get_contents("http://www.google.com");
preg_match('#<title>(.*?)</title>#'$content$title);
$title[1];
?>
Wow! Thanks john.

working on my new proxy.
test

The first AnalyzeThatHost sets Analyze That Host as a variable, then searches for the title, and searches for the shortcut icon, and if it has one, it uses it as the image..

not too bad?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote