Forum Moderators: coopster
I have a problem with a PHP page named search.php, this file will get content from another Web site page.
I get this error:
Warning: file_get_contents(http://apps5.site.com/apps/domainarticle/article.cgi?cid=M45&&hl=en&ac=p&q=Design): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/bestlo/public_html/my-mesm/search.php on line 9
How to fix this error? Any help please
Regards,
Dan
You don't have to add it to your query string at all. By the way, PHP has a nice little function that does your str_replace and more. See urlencode() [php.net] for more information.