我得到這個錯誤信息:在這裏PHP的preg_match()未知的修飾網址
Warning: preg_match(): Unknown modifier '/' in C:\xampp\htdocs\easyblog\wp-content\themes\easyblog\inc\widget\flickr.php on line 225
的源代碼:
// Screen name or RSS in $username?
if (!preg_match("/http://api.flickr.com/services/feeds/", $username))
$url = "http://api.flickr.com/services/feeds/photos_public.gne?id=".urlencode($user_id)."&format=".$flickrformat."&lang=en-us".$tags;
else
$url = $username."&format=".$flickrformat.$tags;
有人可以幫助我,拜託了!
避開斜槓。 –
我已經嘗試使用此代碼,但仍然是錯誤: 'if(!preg_match(「http://api.flickr.com/services/feeds」,$ username))' – vicky123