Search found 5 matches

by Saxywolf
Thu Sep 04, 2003 9:33 pm
Forum: PHP - Code
Topic: foreach w/nested variable-depth multi-dimensional arrays
Replies: 3
Views: 386

and here I thought ppl took the time to [color] their code... There can only be ten (maximum), numbered 1-10. I made up this array construction, but it should work with the code I got to work $player = array( 'Name' => 'Joe', 'Clan' => 'USA'; 'Rank1' => 'Newbie', 'Rank2' => 'Sorcerer'; 'Skills' => a...
by Saxywolf
Thu Sep 04, 2003 3:02 pm
Forum: PHP - Code
Topic: foreach w/nested variable-depth multi-dimensional arrays
Replies: 3
Views: 386

foreach w/nested variable-depth multi-dimensional arrays

I want to display all the information for 10 ppl. This is what I tried: $Player[1]['Name'] = "Joe"; $Player[1]['Rank'] = "Newbie"; $Player[1]['Skills']['Digging'] = 0; for ($Player_Num = 1; $Player_Num <= 10; $Player++) { echo "$Player_Num : {$Player[$Player_Num]['Name']}<br...
by Saxywolf
Thu Aug 28, 2003 10:09 pm
Forum: PHP - Code
Topic: fopen - trouble reading in entire file
Replies: 3
Views: 328

$file = fsockopen ("myplanetside.station.sony.com", 80, $errno, $errstr, 30); if (!$file) &#123; echo "$errstr ($errno)</br>"; &#125; else &#123; fputs ($file, "GET /outfit.jsp?outfitId=6723&worldId=16 HTTP/1.1\r\n"); fputs ($file, "Host: myplanets...
by Saxywolf
Thu Aug 28, 2003 9:27 pm
Forum: PHP - Code
Topic: fopen - trouble reading in entire file
Replies: 3
Views: 328

A friend telneted into the Sony server and apparently it is expecting some cookie information or somthin... He telneted some info back after packet sniffin (or somthing, possibly with a program called Ethereal). I may have to use raw sockets rather then fopen. but I have no idea what "Raw Socke...
by Saxywolf
Thu Aug 28, 2003 8:51 pm
Forum: PHP - Code
Topic: fopen - trouble reading in entire file
Replies: 3
Views: 328

fopen - trouble reading in entire file

I'm having trouble with fopen. This is the site I'm testing it on: http://myplanetside.station.sony.com/outfit.jsp?outfitId=6723&worldId=16 The first 41 lines of page source will be read, but then it stops. If I copy the 3946 lines of page source and save it to a .txt file on my server the entir...