Jump to content

HELP!Parse error: parse error, unexpected T_UNSET error


jigen7

Recommended Posts

can anyone help me fix this?? code it gives me an unset error which i dont know how to debug.. it reads every url stored in $all_url then removes the url that has address starting from 0-9 and if it see the word google it is also remove... or can anyone give me an alternative code?

 

 

$x = $counter;

while (++$x < 200) {

  if (preg_match('~http://(www\.)?([0-9]|(.+\.)?google\.com)~', $all_url[$x])

    unset($all_url[$x]);

}

can any1 revise it?i want to get only the urls from the variable $all_url with full domain for example www.digitalpoint.com... i want to exclude the urls that is starting with a number , /search, and site that does not include google word in ot good in regualr expressions lol

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.