filegetcontents

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
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

filegetcontents

Post by SidewinderX »

hello, im not at home at the moment so ill try my best to show you what im trying to do with out actually posting my code...

im trying to do a file_get_contents

Code: Select all

<?php
$url = "http://nw4.novaworld.net/NWBanned.dll?success=bhd_6_banned.htm&failure=bhd_6_main.htm&relay=bhd_6_relay.htm&msgbase=bhd_6_msg.htm&nodb=bhd_6_nodb.htm&pfid=26";
$content = file_get_contents($url);
echo $content;
?>
When i do that it does get the content, but it gets the contents of the preloader. In other words when you click on this link
it says "connecting to database"
then redirects to this page http://nw4.novaworld.net/NWBanned.dll
if you click on that link you get an error.

What i want to do is when you click on this link
it directs you to a 'Banned List' page. I want to get the contents of that page after it "connects" to the database.
Neither of the links works.
Can someone give me an idea?

Thanks


feyd | made the insanely long links shorter
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it appears they want to have 3 cookies defined before hitting the secondary page... even enough to set up with curl...
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

Post by SidewinderX »

ive done some research but i have absolutley no idea what to do with curl. could someone please give me an example

thanks
Post Reply