kodu
<?
$feed="http://www.ersinacar.com/video.xml";
$ch = curl_init();
$timeout = 0;
curl_setopt ($ch, CURLOPT_URL, $feed);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
# curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$xml = curl_exec($ch);
//echo $xml;
curl_close($ch);
$desen = <<< HTML
<video videoId="(.*?)"
permalinkId="(.*?)"
extension="(.*?)"
length="(.*?)"
size="(.*?)"
fileHash="(.*?)"
tags="(.*?)"
previewHash="(.*?)"
previewHashLow="(.*?)"
highResImage="(.*?)"
medResImage="(.*?)"
username="(.*?)"
writerName="(.*?)"
directorName="(.*?)"
producerName="(.*?)"
castName="(.*?)"
studio="(.*?)"
screenFormat="(.*?)"
copyRightOwner="(.*?)"
releaseDate="(.*?)"
views="(.*?)"
rating="(.*?)"
numRatingVotes="(.*?)"
numDownloads="(.*?)"
numViews="(.*?)"
description="(.*?)"
title="(.*?)"
dateAdded="(.*?)"
age="(.*?)"
primaryCollectionPermalink="(.*?)"
primaryCollectionTitle="(.*?)"
primaryCollectionThumb="(.*?)"
allowEmbedding="(.*?)"
premium="(.*?)"
contentRatingId="(.*?)"
category="(.*?)"
numOfComments="(.*?)"
>
HTML;
preg_match_all("|$desen|siU",$xml,$out);
echo "<pre>";
print_r($out);
echo "</pre>";
?>şeklinde değiştirdim boşuklar enterlarla oynadım çıkan sonuç bu
Array
(
[0] => Array
(
[0] =>
)
[1] => Array
(
[0] => 1054"
permalinkId="e1054"
extension=".mov"
length="30 sec"
size="11737354"
fileHash="f9cb611d0d108cc67aaf73805b4e591f7232e801"
tags="jay cross blogs bloggers theweblogproject opensource robin good"
previewHash="0086ff717b8e4f16b01f2b046e0007b6eef977b2"
previewHashLow="fb8fad4cc7d2f680f4a7c838626bbcd6608fe7c1"
highResImage="media-e10541147583625.jpg"
medResImage="media-e10541147583625.jpg"
username="robingood"
writerName=""
directorName=""
producerName=""
castName=""
studio=""
screenFormat=""
copyRightOwner=""
releaseDate="Sat Jul 07 03:20:23 PDT 2007"
views="699"
rating="0.0"
numRatingVotes="0"
numDownloads="0"
numViews="699"
description="Mini-clip footage for the open-source Internet movie TheWeblogProject. Jay Cross, expert in organizational development and one of the early evangelists of e-learning answers the critical question."
title="What is a blog? - Jay Cross"
dateAdded="2005-08-26 18:28:00"
age="1 year ago"
primaryCollectionPermalink="s2040"
primaryCollectionTitle="What is a blog? - Jay Cross"
primaryCollectionThumb="defaultSeriesLow.jpg"
allowEmbedding="true"
premium="false"
contentRatingId="1"
category="entertainment"
numOfComments="0"
>
Array
(
[0] => e1907
)
[3] => Array
(
[0] => .mov
)
[4] => Array
(
[0] => 30 sec
)
[5] => Array
(
[0] => 4061416
)
[6] => Array
(
[0] => 4edf4eda4766244cc6a80642ed1b14aa89530c9e
)
[7] => Array
(
[0] => commercial iraq macintosh apple parody mac saddam imac
)
[8] => Array
(
[0] => fb4e9c9ef26c1250d4221537ce5ced7da4a4cb70
)
[9] => Array
(
[0] => 321f33648114a9124f025b6ae2b820d7212e404f
)
[10] => Array
(
[0] => media-e19071147583627.jpg
)
[11] => Array
(
[0] => media-e19071147583627.jpg
)
[12] => Array
(
[0] => aliquidreality
)
[13] => Array
(
[0] =>
)
[14] => Array
(
[0] =>
)
[15] => Array
(
[0] =>
)
[16] => Array
(
[0] =>
)
[17] => Array
(
[0] =>
)
[18] => Array
(
[0] =>
)
[19] => Array
(
[0] =>
)
[20] => Array
(
[0] => Sat Jul 07 03:20:23 PDT 2007
)
[21] => Array
(
[0] => 1451
)
[22] => Array
(
[0] => 1.0
)
[23] => Array
(
[0] => 1
)
[24] => Array
(
[0] => 0
)
[25] => Array
(
[0] => 1451
)
[26] => Array
(
[0] => Iraq at the height of sanctioning, tried to put together a supercomputer out of Play Station 2's purchased off of ebay. They thought they could network them or something, and get it to work as a computer, because Saddam was not allowed to have computer. The United States would not allow them even playstations for this fear. So Iraq built their own computer... the iRaq.
)
[27] => Array
(
[0] => iRaq
)
[28] => Array
(
[0] => 2005-09-21 23:55:00
)
[29] => Array
(
[0] => 1 year ago
)
[30] => Array
(
[0] => s2078
)
[31] => Array
(
[0] => Channel Surfing
)
[32] => Array
(
[0] => defaultSeriesLow.jpg
)
[33] => Array
(
[0] => true
)
[34] => Array
(
[0] => false
)
[35] => Array
(
[0] => 1
)
[36] => Array
(
[0] => comedy
)
[37] => Array
(
[0] => 1
)
)yanlış birşey var ama nerde...