Jump to content

HELP!Parse error: parse error, unexpected T_UNSET error


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.