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 3 of 3
  1. #1
    Regular Coder kosstr12's Avatar
    Join Date
    Apr 2007
    Location
    Woodstock, Georgia
    Posts
    428
    Thanks
    7
    Thanked 5 Times in 5 Posts

    Retrieving information from another page

    Is it possible with php to go to another page and retrieve parts of the code? For example:
    Say MSN has a stock ticker, and I want to make one also. Am I able to go to the stock page, and select the number that the stock is currently at? With PHP.

    Thanks,
    Koss

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    All depends on how you code it

  • #3
    Regular Coder Iszak's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Western Australia
    Posts
    332
    Thanks
    2
    Thanked 58 Times in 57 Posts
    Implying the code is HTML yes, you could use file_get_contents, or cURL, I'm sure there are others. Then you'd want a HTML parser or regular expressions, most people recommend a HTML parser.


  •  

    Posting Permissions

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