Re: [PHP] Changing User Agent for fopen

2003-12-05 Thread Stuart
Nick Wilson wrote: * and then Stuart declared 2) If you want to query google you're better off using the google SOAP API - it's legal for a start. See the following for more info... http://www.google.com/apis/ http://www.devshed.com/Server_Side/PHP/GoogleAPI/page1.html and http://dietrich.g

Re: [PHP] Changing User Agent for fopen

2003-12-05 Thread Nick Wilson
* and then Stuart declared > 2) If you want to query google you're better off using the google SOAP > API - it's legal for a start. See the following for more info... > > http://www.google.com/apis/ > http://www.devshed.com/Server_Side/PHP/GoogleAPI/page1.html and http://dietrich.ganx4.co

Re: [PHP] Changing User Agent for fopen

2003-12-05 Thread Stuart
Gohaku wrote: There are some pages I would like to extract links from but I can't access the page using the following: ini_set('php.user_agent', 'Mozilla/5.0'); $url = "http://www.google.com/search?q=php";; $fp = fopen($url,"r"); $buffer = fread($fp,100); ec

[PHP] Changing User Agent for fopen

2003-12-04 Thread Gohaku
Hi everybody, There are some pages I would like to extract links from but I can't access the page using the following: ini_set('php.user_agent', 'Mozilla/5.0'); $url = "http://www.google.com/search?q=php";; $fp = fopen($url,"r"); $buffer = fread($fp,100); echo

RE: [PHP] Changing User Agent for fopen

2003-12-04 Thread jon
04, 2003 8:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Changing User Agent for fopen Hi everybody, There are some pages I would like to extract links from but I can't access the page using the following: ini_set('php.user_agent', 'Mozilla/5.0'); $url

Re: [PHP] Changing User Agent for fopen

2003-12-04 Thread Gerard Samuel
On Thursday 04 December 2003 10:36 am, Gohaku wrote: > Hi everybody, > There are some pages I would like to extract links from but I can't > access the page using the following: > ini_set('php.user_agent', 'Mozilla/5.0'); This should work -> header('User-Agent: Mozilla/5.0'); -- PHP Gen