View Full Version : Retrive data from ASP.net

12-31-2007, 09:40 AM
i have a php page that need data from asp.net.
but the problem i facing is, i can't get the data from ASP.net
What will be the solution to get the data from ASP.net
is there a way to let the page to conmunicate?

Is there any sources that can let me get data from other page? (asp or asp.net)

Thanks for helping
Happy New Year

12-31-2007, 09:56 AM
If you just need the sources from the page, and your host has allow_url_fopen enabled you could use file_get_contents() (http://php.net/file_get_contents):

$page = file_get_contents('http://www.asp.net/');
$page would contain the source of the URL given. Check the manual page for more information.

01-02-2008, 02:25 AM
Thanks for the information, but the data that i need is from asp 'session'.
Do we have a way to get the data?

01-02-2008, 02:44 AM
you could use the example above and build an asp.net page to give you the information you require and nothing else. the only way you could maybe gather the session is if they are both running on the same server (IIS). but i am unsure about how this works and if it would even work at all.