accessing external domain page with session variables in use

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
tsakali
Forum Newbie
Posts: 2
Joined: Sat Jun 23, 2012 7:00 pm

accessing external domain page with session variables in use

Post by tsakali »

Hello all, new to the forums, and I have run into a problem that I can't seem to get around ...K here is what I am trying to do:

this page here:
http://playmakers.ezleagues.ezfacility.com/default.aspx

basically loads a page with info pulled from a database.

But instead of just adding this page into an iframe, I want somehow be able to load the results of the page into a variable so I can then use 'str_replace' to make some changes to the layout before I echo the results on my own domain's page.


I can do this. BUT here is the problem. The 'quick stats' area of that page serves different info if a user is logged in, and my issue is that if I simply do a 'file_get_contents' it doesn't load the proper results as if someone is logged in, it just serves me the generic page it serves for anyone that is not logged in.

How can I fix this issue? how can I get the content of an external domain page but with user login data being taken under consideration.?
I believe they are using a session variable an AsP.NET_SessionId to be exact, not sure if it makes a difference since I am trying to get the content and echo them in a php page.

It seems that cURL is what I need to use,but for the life of me, I can't find a good tutorial on this issue.

Is this a simple thing that I am chasing around? do you need more info to help me out? Any help would be appreciated!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: accessing external domain page with session variables in

Post by requinix »

Part 2 to what I asked elsewhere:

So why do you want to show their content on your site? Do they know you're doing this?
tsakali
Forum Newbie
Posts: 2
Joined: Sat Jun 23, 2012 7:00 pm

Re: accessing external domain page with session variables in

Post by tsakali »

This is a league managing system my client is paying for. He is currently adding it to his website with a simple iframe. I am developing his new site,and I want to be able to freshen up the look of this EZ facility results because they are not allowing ANY kind of visual customization of any kind. Not due to any other reason than the simple fact that they just don't want to bother. SO I need to get around the problem myself in order to give him a better looking result that will better match the new look of the new website.
Post Reply