Jump to content

accessing other website data with PHP

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
LCD344

LCD344

    Newbie

  • Members
  • Pip
  • 7 posts
i have an interesting problem... im kinda building a sports website, and i want to have a statistics table, but i dont realy want to update it by myself everytime (or lets say i want to build an archive, and dont feel like inputing it all ?) is there any way to access a table or other data from other websites ? i can think maybe downloading the source info by PHP command or something ?

thank you very much
Nur

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
You can use an HTML DOM parser, PHP includes one. The sports web site may include a paid API for external access, as I doubt they would want you to rip their data.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
Hmmm... I'm not sure how legible it is but google "Making a search engine in php" back before my pc got wiped I had some search engine code- you enter a address and it would open the address with the r command (like a .txt file).
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).

#4
LCD344

LCD344

    Newbie

  • Members
  • Pip
  • 7 posts
thanks you very much... ill try doing that...