Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Retrive data from ASP.net

    Hi,
    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

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    If you just need the sources from the page, and your host has allow_url_fopen enabled you could use file_get_contents():
    PHP Code:
    $page file_get_contents('http://www.asp.net/'); 
    $page would contain the source of the URL given. Check the manual page for more information.

  • Users who have thanked Inigoesdr for this post:

    Sky86 (01-02-2008)

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks for the information, but the data that i need is from asp 'session'.
    Do we have a way to get the data?

  • #4
    Regular Coder mic2100's Avatar
    Join Date
    Feb 2006
    Location
    Scunthorpe
    Posts
    562
    Thanks
    15
    Thanked 28 Times in 27 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •