Reply to fopen() with url and search engine (beginner)

Your name:

Reply:


Posted by sathyashrayan on 07/03/07 07:54

Dear group,



When I went through the php docs I come across with fopen() function
which can also takes the any url. So I tested with this following little
code.



<?php

$fh =
fopen("http://www.google.co.in/search?hl=en&q=php&btnG=Google+Search&meta=",
"r");



while(!feof($fh))

{

$output = htmlspecialchars(fgets($fh, 1024));

echo ("$output<br />");

}



fclose($fh);



?>



The query string does that all. If I want to have my own page with a text
box and a submit button which searches the google and display those google
search result links in my web page. Can that be possible? Is this the basic
thing about search engine? Or I am I missing something very basic? Thanks
for any help.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация