我相信这里会有人帮忙的。我对德国Umlauts(ä,ü,ö)有意见
密码
$wppost_interpret = $this->data[\'track\'][\'itunes\'][\'artistName\'];
$wppost_interpret_title = $this->data[\'track\'][\'itunes\'][\'trackName\'];
$wppost_exist_1 = exec("wp db query \'SELECT post_title FROM wp_posts WHERE post_title LIKE \\"$wppost_interpret_title - $wppost_interpret\\" LIMIT 1\' --path=\'/var/www/ccc.com/htdocs\' --quiet");
if ($wppost_exist_1 == "$wppost_interpret_title - $wppost_interpret") {
// nothing
echo "true";
} else {
echo "false";
// do something
};
完整的脚本正在按我想要的方式工作。但当谈到像“Die Hände zum Himmel”这样的标题时,我的输出总是“错误的”。