How do I resolve a strpos() “empty delimiter” error?
问题 Here's the error: For: PHP 5.2+ Warning: strpos() [function.strpos]: Empty delimiter in /helper.php on line 445 and here is the code on that line: if($src = $img->getAttribute('src') AND strpos($src,$fgParams->get('base')) === false) { // prevents repeat processing EgivaUtility::profiling('Processing Image SRC: '.$src); // fix rel paths $src = EgivaUtility::encode_url(EgivaUtility::makeAbsUrl($origLink,$src)); if($image_details = @getimagesize($src) AND !in_array($image_details[0],array(1,2))