|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Baseball Stats
I have a site, and I want to be able to create player pages and have the stats updated automatically. What is the code I need for this? For an example please use Andruw Jones and stats from ESPN.com
|
|
#2
|
|||
|
|||
|
RE: Baseball Stats
Have you contacted the sites in question to ask for permission. Otherwise I believe this may be copyright infringement and is very easy to track since it is a direct copy. Just a word of warning, thats all.
|
|
#3
|
|||
|
|||
|
RE: Baseball Stats
I haven't yet, Im jus asking to know how to do. I also have to be careful because MLB is shutting down fan sites.
|
|
#4
|
|||
|
|||
|
RE: Baseball Stats
OK, well basically this is what the code needs to do:
1. Load the remote page into an array/var. 2. Parse the page to select the information required. 3. Remove formatting from data and return as XML/array etc. Do you have 'allow_url_fopen = 1' in your php.ini file? I believe this is the setting that allows you to use fopen to access the remote file. What do people think is the best way of retrieving a remote file, using fopen() or fsockopen()? I don't have much experience of remote file retrieval. Once I know this, I will be able to write some code for you. |
|
#5
|
|||
|
|||
|
RE: Baseball Stats
I have no idea what your talking about.
|
|
#6
|
|||
|
|||
|
RE: Baseball Stats
No, that was just a general question to all forum users. Matt, notepad, any ideas?
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Baseball Stats |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|