Jump to content

Get data from a website

- - - - -

  • Please log in to reply
5 replies to this topic

#1
murugavelb

murugavelb

    Newbie

  • Members
  • PipPip
  • 11 posts
I need to grab the data from a website and display it on my .PHP page...........

For instance, get the STOCK MARKET details from a STOCK MARKET WEBSITE and i want to display

those STOCK DETAILS in my .PHP page.....

#2
lol33d

lol33d

    Programmer

  • Members
  • PipPipPipPip
  • 149 posts
you can use PHP: preg_match - Manual and PHP: preg_match_all - Manual

#3
Buffer_overflow

Buffer_overflow

    Newbie

  • Members
  • PipPip
  • 10 posts

lol33d said:


I need to know the same thing , but i didnt understand what you wanted to tell with these link.

#4
murugavelb

murugavelb

    Newbie

  • Members
  • PipPip
  • 11 posts

lol33d said:



Thanks for ur reply....

#5
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#
At first, you need to get the pages from the other servers with file_get_contents or with the curl functions, or similar.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#6
wcypierre

wcypierre

    Newbie

  • Members
  • PipPip
  • 10 posts
What's the file? html, rss, xml, php? If its rss/xml then you can get the data then use simplexml to parse it.
Or if its html,php(or any other backend), then a regex will be the way.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users