URL problem with fopen
Moderator: General Moderators
URL problem with fopen
I am having problem, when I try to open URL like fopen ("www.abc.com/def/gde", "r"), it works fine but it opens just the index page (http://www.abc.com) and not the entire URL. How can that be fixed? Thanks a lot...
Re: URL problem with fopen
Try cURL instead of fopen - this looks like some sort of security setting
http://lmgtfy.com/?q=php+curl
http://lmgtfy.com/?q=php+curl
Re: URL problem with fopen
So it's up to the targeted site, not up to me?
Re: URL problem with fopen
Can you post the real link you are trying to access?
Re: URL problem with fopen
My guess is this link is actually a script that is checking for non-browser connections and feeding the homepage HTML to keep people from sucking their horoscopes. You'll probably need cURL to fake a browser headers to read the page. Their page is copyrighted anyway....
Re: URL problem with fopen
Thanks a lot, I needed some page with horoscopes to practice building a little app. Thanks.