Ok, so I had this PHP script set up that would pull information off of an html page to be used in an online application I'm making and everything was going great... That is until the page I was pulling the information off of decided to require a login to access the information.
Previously, I could access the following page without any login:
http://baseball.smallworld.com/fullseason/main/manager_other.html?user_id=34696
However, now it requires you to be logged in first before you can view it. I've worked on some work-arounds, and I can login with a direct URL such as:
http://baseball.smallworld.com/fullseason/answer_login.html?username=Teamname&password=Password
But this URL does not have the information I need. Now here's the fun part: If you login in using the 2nd URL, you can then use the 1st URL (because, in effect, you're logged in). The problem is getting this to work in PHP.
I've tried the following to no avail:
<?
$url = "http://baseball.smallworld.com/fullseason/answer_login.html?username=Teamname&password=Password";
fopen($url, "r");
$team = "http://baseball.smallworld.com/fullseason/main/manager_other.html?user_id=34696";
$document = fopen($team, "r");
$content = fread($document, 999999);
echo $content;
?>
Any suggestions would be greatly appreciated.