View Single Post
Old 06-26-2006, 11:03 PM  
acctman
Confirmed User
 
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
ok seems to be working except one issue... damn array.. how do you pull the results from the array... it's listing them one i do a print_r but but will not output them to the. all i'm getting in the file is Array repeated on each line

Code:
$lookfor ="|<024version>(.*?)</024version>|Ui";	
preg_match_all($lookfor,$html,$results);

print_r($results[1]); 
$writecontent .= "$results[1]\n";

echo "$result[1]\n";

$fp = fopen($outputfile,"a");
fwrite($fp,$writecontent);
fclose($fp);
acctman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote