Advanced fopen-ing?(?)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hauni
Forum Newbie
Posts: 11
Joined: Thu Sep 25, 2008 11:40 am

Advanced fopen-ing?(?)

Post by hauni »

Hay guys.
I wish to open this page:
http://www.skrivebua.no/skrivebua.cgi?a ... bnr=668626
As you see, when you open it, it first takes you to http://www.skrivebua.no, before redirecting me to the desired page.
The result of this is that fopen, curl or file_get_contents wont let me read the page. If you view the source of skrivebua.no there is a JavaScript-script.
I don't know JS well, but I guess this is what redirects the page. And one more thing, the site uses iframes, so when you read the source of http://www.skrivebua.no/skrivebua.cgi?a ... bnr=668626 it's the same as it appears in the front page.
So is there anyone who can help withdraw the information from the page?
I would be so gratfeful, I have tried for such a long time now.

Code: Select all

$text = file_get_contents('http://www.skrivebua.no/skrivebua.cgi?a=lesbidrag&bnr=668626');
$text = str_ireplace('</head>', '<base href="http://www.skrivebua.no/"></head>', $text);
hauni
Forum Newbie
Posts: 11
Joined: Thu Sep 25, 2008 11:40 am

Re: Advanced fopen-ing?(?)

Post by hauni »

Anyone?
hauni
Forum Newbie
Posts: 11
Joined: Thu Sep 25, 2008 11:40 am

Re: Advanced fopen-ing?(?)

Post by hauni »

noone?
Post Reply