GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php quick question (https://gfy.com/showthread.php?t=404747)

alex79 12-18-2004 11:08 AM

php quick question
 
anybody know why fopen() function is not working if i try to access a search results page from google?
for example fopen("http://www.google.com/search?hl=en&lr=&safe=off&q=aaa+bbb&btnG=Search") is returning this error message:

Warning: fopen(http://www.google.com/search?hl=en&l...bb&btnG=Search): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in

azguy 12-18-2004 11:10 AM

urlencode it first

azguy 12-18-2004 11:10 AM

or one of the similar functions

Twe Russ 12-18-2004 11:11 AM

Try to Q and A section of GFY.

alex79 12-18-2004 11:16 AM

Quote:

Originally posted by azguy
urlencode it first
wtf.. the urlencode() is returning this url http%3A%2F%2Fwww.google.com%2Fsearch%3Fhl%3Den%26l r%3D%26safe%3Doff%26q%3Daaa%2Bbbb%26btnG%3DSearch

:mad:

azguy 12-18-2004 11:28 AM

Quote:

Originally posted by alex79
wtf.. the urlencode() is returning this url http%3A%2F%2Fwww.google.com%2Fsearch%3Fhl%3Den%26l r%3D%26safe%3Doff%26q%3Daaa%2Bbbb%26btnG%3DSearch

:mad:

And?

azguy 12-18-2004 11:28 AM

Just use Curl what's the problem


All times are GMT -7. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123