Hi,
I seem i seem to have a problem with this:[PHP]
for($i=1;$i<7;$ i++) {
$content = file_get_conten ts('http://www.web.co.uk/d.asp?ID='.$i);
preg_match_all( $email_match_re gex, $content, $matches);
foreach($matche s[1] as $index => $value) {
print $index[1];
}
}[/PHP]
I am getting the following errors which i cannot fix:
Warning: Invalid argument supplied for foreach() in /home/ee/public_html/test.php on line 13
Notice: Undefined variable: email_match_reg ex in /home/ee/public_html/test.php on line 11
Any Ideas?
I seem i seem to have a problem with this:[PHP]
for($i=1;$i<7;$ i++) {
$content = file_get_conten ts('http://www.web.co.uk/d.asp?ID='.$i);
preg_match_all( $email_match_re gex, $content, $matches);
foreach($matche s[1] as $index => $value) {
print $index[1];
}
}[/PHP]
I am getting the following errors which i cannot fix:
Warning: Invalid argument supplied for foreach() in /home/ee/public_html/test.php on line 13
Notice: Undefined variable: email_match_reg ex in /home/ee/public_html/test.php on line 11
Any Ideas?
Comment