How can I use 2 ereg commands in the following script ?
while(!feof($fp)) {
$line = fgets($fp, 40000);
if(ereg("(http://www.dizzyweb.net/cgi-bin/divxtop/out.cgi[\"]*)", $line, $url_arr)) {
fputs ($fp2,"$url_arr[0]\n",40000);
echo "$url_arr[0]<br> \n";
}}
The 2nd one should take anything that is between 2 pieces of html code, for example everything between <td><font color=\"black\"> and </font></td>
how should I do that ?