parsing for a database

A

Anonymous

Guest
I was wondering to find something that could make me parse without the need of XML, is there something that u use to parse in PHP code?
if so what is it? and to learn more about it, where should I go?
 
What do you mean by "parse"? There's a million different things you could be parsing, and a million different ways to parse them..
 
I mean this kinda parse

Code:
<?php 

$url = 'http://www.yoursite.com/file.htm'; 
$file = @fopen($url, 'r'); 

while (!feof($file)){ 
   $line = @fgets($file, 1024); 
   if (eregi('<--- test --->(.*)<--- No test --->', $line, $out)) { 
     $content = $out[1]; 
     break; 
   } 
 } 

empty($content) ? print '' : print $content;  
@fclose($file); 

?>
 
Back
Top