PHP help - getting information using implode

P

pg_exoshear

Guest
I'm wanting to gather information off another page using PHP -- page here http://www.wulfram.com/server_info.php

Basically, I'm wanting the server information and nothing else. ;-)

The code I know is as follows...

<?

$contents = implode("",file("http://www.wulfram.com/server_info.php") );
echo($contents);

?>

This works great, it pulls everything off the server page and displays it on my page. But, I only want specific bits of information. :)

Someone had done a simlar thing before for their website. So I know it can be done, but not how. Sigh, it'd be easier if I could find an example on the internet.

Anyway, if you can figure out what I want, any help would be great! :)
 
W

wyrd_fish

Guest
your going to have to have either access to teh data the page is made from, or have a complex extracting script...
 
P

pg_exoshear

Guest
Originally posted by wyrd_fish
or have a complex extracting script...

Complex script it will have to be. I don't have access to the page code. :)

Any examples on the web of what I would need?
 
W

wyrd_fish

Guest
right, what you want to do is:
  1. assign the source code as a variable
  2. find the length, in chars, untill the server info starts
  3. get all the sections of server info, i surjest as seperate arrays
  4. run a bit of script on each array that cutts out all the important stuff.
    [/list=1]
 

Users who are viewing this thread

Similar threads

S
Replies
5
Views
740
L_Plates
L
S
Replies
2
Views
545
wyrd_fish
W
W
Replies
8
Views
1K
wyrd_fish
W
P
Replies
13
Views
1K
wyrd_fish
W
Top Bottom