3
私は多くのDMCA私のウェブサイトの削除の電子メールを取得し、私は自分のウェブサイトからそれらのトラックを削除するプロセスを自動化しようとしています。これでURLはどのように取得できますか?
メールはすべてこれに似ています。
http://example.com/title-to-post.html title - to post
http://example.com/title-of-post.html title - of post
http://example.com/some-song-artist-some-song-name.html some song artist - some song name
しかし、多くのものがあります。この部分のURL部分のみを返したいと思います。例を下に示します。
http://example.com/title-to-post.html
http://example.com/title-of-post.html
http://example.com/some-song-artist-some-song-name.html
EDIT:私は、標準的なコードを使用してそれらを呼び出して、その後、txtファイルにこれらのファイルを格納しています。
$urls = file_get_contents("oururls.txt");
$data = explode(",", $urls);
foreach ($data as $item) {
echo "$item";
echo '<br>';
}
起こって本当に空想何も、どのように今までそれにもタイトルを返すだと私はちょうどのURLをしたいです。