• 08-07-2007, 11:15:02
    #10
    Üyeliği durduruldu
    saho adlı üyeden alıntı: mesajı görüntüle
    <?
            $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);
            curl_close($ch);
    
    $a=explode('permalinkId="',$xml); $a=explode('"',$a[1]); $perma=$a[0]; 
        $b=explode('length="',$xml); $b=explode('"',$b[1]); $l=$a[0];
        $c=explode('size="',$xml); $c=explode('"',$c[1]); $s=$a[0];
        $d=explode('fileHash="',$xml); $d=explode('"',$d[1]); $f=$a[0];
        $e=explode('tags="',$xml); $e=explode('"',$e[1]); $tag=$a[0];
    /*print_r($perma);
    print_r($l);
    print_r($s);
    print_r($f);
    print_r($tag);*/
    print_r($a);
    print_r($b);
    print_r($c);
    print_r($d);
    print_r($e);
    
    
    ?>
    Array ( [0] => e1054 [1] => extension= [2] => .mov [3] => length= [4] => 30 sec [5] => size= [6] => 11737354 [7] => fileHash= [8] => f9cb611d0d108cc67aaf73805b4e591f7232e801 [9] => tags= [10] => jay cross blogs bloggers theweblogproject opensource robin good [11] => previewHash= [12] => 0086ff717b8e4f16b01f2b046e0007b6eef977b2 [13] => previewHashLow= [14] => fb8fad4cc7d2f680f4a7c838626bbcd6608fe7c1 [15] => highResImage= [16] => media-e10541147583625.jpg [17] => medResImage= [18] => media-e10541147583625.jpg [19] => username= [20] => robingood [21] => writerName= [22] => [23] => directorName= [24] => [25] => producerName= [26] => [27] => castName= [28] => [29] => studio= [30] => [31] => screenFormat= [32] => [33] => copyRightOwner= [34] => [35] => releaseDate= [36] => Sat Jul 07 03:20:23 PDT 2007 [37] => views= [38] => 699 [39] => rating= [40] => 0.0 [41] => numRatingVotes= [42] => 0 [43] => numDownloads= [44] => 0 [45] => numViews= [46] => 699 [47] => description= [48] => 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. [49] => title= [50] => What is a blog? - Jay Cross [51] => dateAdded= [52] => 2005-08-26 18:28:00 [53] => age= [54] => 1 year ago [55] => primaryCollectionPermalink= [56] => s2040 [57] => primaryCollectionTitle= [58] => What is a blog? - Jay Cross [59] => primaryCollectionThumb= [60] => defaultSeriesLow.jpg [61] => allowEmbedding= [62] => true [63] => premium= [64] => false [65] => contentRatingId= [66] => 1 [67] => category= [68] => entertainment [69] => numOfComments= [70] => 0 [71] => > 6 [73] => >                        0 [75] => >                                                                                                                                                                                                    1907 [77] => ) Array ( [0] => 30 sec [1] => size= [2] => 11737354 [3] => fileHash= [4] => f9cb611d0d108cc67aaf73805b4e591f7232e801 [5] => tags= [6] => jay cross blogs bloggers theweblogproject opensource robin good [7] => previewHash= [8] => 0086ff717b8e4f16b01f2b046e0007b6eef977b2 [9] => previewHashLow= [10] => fb8fad4cc7d2f680f4a7c838626bbcd6608fe7c1 [11] => highResImage= [12] => media-e10541147583625.jpg [13] => medResImage= [14] => media-e10541147583625.jpg [15] => username= [16] => robingood [17] => writerName= [18] => [19] => directorName= [20] => [21] => producerName= [22] => [23] => castName= [24] => [25] => studio= [26] => [27] => screenFormat= [28] => [29] => copyRightOwner= [30] => [31] => releaseDate= [32] => Sat Jul 07 03:20:23 PDT 2007 [33] => views= [34] => 699 [35] => rating= [36] => 0.0 [37] => numRatingVotes= [38] => 0 [39] => numDownloads= [40] => 0 [41] => numViews= [42] => 699 [43] => description= [44] => 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. [45] => title= [46] => What is a blog? - Jay Cross [47] => dateAdded= [48] => 2005-08-26 18:28:00 [49] => age= [50] => 1 year ago [51] => primaryCollectionPermalink= [52] => s2040 [53] => primaryCollectionTitle= [54] => What is a blog? - Jay Cross [55] => primaryCollectionThumb= [56] => defaultSeriesLow.jpg [57] => allowEmbedding= [58] => true [59] => premium= [60] => false [61] => contentRatingId= [62] => 1 [63] => category= [64] => entertainment [65] => numOfComments= [66] => 0 [67] => > 6 [69] => >                        0 [71] => >                                                                                                                                                                                                    1907 [73] => permalinkId= [74] => e1907 [75] => extension= [76] => .mov [77] => ) Array ( [0] => 11737354 [1] => fileHash= [2] => f9cb611d0d108cc67aaf73805b4e591f7232e801 [3] => tags= [4] => jay cross blogs bloggers theweblogproject opensource robin good [5] => previewHash= [6] => 0086ff717b8e4f16b01f2b046e0007b6eef977b2 [7] => previewHashLow= [8] => fb8fad4cc7d2f680f4a7c838626bbcd6608fe7c1 [9] => highResImage= [10] => media-e10541147583625.jpg [11] => medResImage= [12] => media-e10541147583625.jpg [13] => username= [14] => robingood [15] => writerName= [16] => [17] => directorName= [18] => [19] => producerName= [20] => [21] => castName= [22] => [23] => studio= [24] => [25] => screenFormat= [26] => [27] => copyRightOwner= [28] => [29] => releaseDate= [30] => Sat Jul 07 03:20:23 PDT 2007 [31] => views= [32] => 699 [33] => rating= [34] => 0.0 [35] => numRatingVotes= [36] => 0 [37] => numDownloads= [38] => 0 [39] => numViews= [40] => 699 [41] => description= [42] => 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. [43] => title= [44] => What is a blog? - Jay Cross [45] => dateAdded= [46] => 2005-08-26 18:28:00 [47] => age= [48] => 1 year ago [49] => primaryCollectionPermalink= [50] => s2040 [51] => primaryCollectionTitle= [52] => What is a blog? - Jay Cross [53] => primaryCollectionThumb= [54] => defaultSeriesLow.jpg [55] => allowEmbedding= [56] => true [57] => premium= [58] => false [59] => contentRatingId= [60] => 1 [61] => category= [62] => entertainment [63] => numOfComments= [64] => 0 [65] => > 6 [67] => >                        0 [69] => >                                                                                                                                                                                                    1907 [71] => permalinkId= [72] => e1907 [73] => extension= [74] => .mov [75] => length= [76] => 30 sec [77] => ) Array ( [0] => f9cb611d0d108cc67aaf73805b4e591f7232e801 [1] => tags= [2] => jay cross blogs bloggers theweblogproject opensource robin good [3] => previewHash= [4] => 0086ff717b8e4f16b01f2b046e0007b6eef977b2 [5] => previewHashLow= [6] => fb8fad4cc7d2f680f4a7c838626bbcd6608fe7c1 [7] => highResImage= [8] => media-e10541147583625.jpg [9] => medResImage= [10] => media-e10541147583625.jpg [11] => username= [12] => robingood [13] => writerName= [14] => [15] => directorName= [16] => [17] => producerName= [18] => [19] => castName= [20] => [21] => studio= [22] => [23] => screenFormat= [24] => [25] => copyRightOwner= [26] => [27] => releaseDate= [28] => Sat Jul 07 03:20:23 PDT 2007 [29] => views= [30] => 699 [31] => rating= [32] => 0.0 [33] => numRatingVotes= [34] => 0 [35] => numDownloads= [36] => 0 [37] => numViews= [38] => 699 [39] => description= [40] => 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. [41] => title= [42] => What is a blog? - Jay Cross [43] => dateAdded= [44] => 2005-08-26 18:28:00 [45] => age= [46] => 1 year ago [47] => primaryCollectionPermalink= [48] => s2040 [49] => primaryCollectionTitle= [50] => What is a blog? - Jay Cross [51] => primaryCollectionThumb= [52] => defaultSeriesLow.jpg [53] => allowEmbedding= [54] => true [55] => premium= [56] => false [57] => contentRatingId= [58] => 1 [59] => category= [60] => entertainment [61] => numOfComments= [62] => 0 [63] => > 6 [65] => >                        0 [67] => >                                                                                                                                                                                                    1907 [69] => permalinkId= [70] => e1907 [71] => extension= [72] => .mov [73] => length= [74] => 30 sec [75] => size= [76] => 4061416 [77] => ) Array ( [0] => jay cross blogs bloggers theweblogproject opensource robin good [1] => previewHash= [2] => 0086ff717b8e4f16b01f2b046e0007b6eef977b2 [3] => previewHashLow= [4] => fb8fad4cc7d2f680f4a7c838626bbcd6608fe7c1 [5] => highResImage= [6] => media-e10541147583625.jpg [7] => medResImage= [8] => media-e10541147583625.jpg [9] => username= [10] => robingood [11] => writerName= [12] => [13] => directorName= [14] => [15] => producerName= [16] => [17] => castName= [18] => [19] => studio= [20] => [21] => screenFormat= [22] => [23] => copyRightOwner= [24] => [25] => releaseDate= [26] => Sat Jul 07 03:20:23 PDT 2007 [27] => views= [28] => 699 [29] => rating= [30] => 0.0 [31] => numRatingVotes= [32] => 0 [33] => numDownloads= [34] => 0 [35] => numViews= [36] => 699 [37] => description= [38] => 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. [39] => title= [40] => What is a blog? - Jay Cross [41] => dateAdded= [42] => 2005-08-26 18:28:00 [43] => age= [44] => 1 year ago [45] => primaryCollectionPermalink= [46] => s2040 [47] => primaryCollectionTitle= [48] => What is a blog? - Jay Cross [49] => primaryCollectionThumb= [50] => defaultSeriesLow.jpg [51] => allowEmbedding= [52] => true [53] => premium= [54] => false [55] => contentRatingId= [56] => 1 [57] => category= [58] => entertainment [59] => numOfComments= [60] => 0 [61] => > 6 [63] => >                        0 [65] => >                                                                                                                                                                                                    1907 [67] =>     permalinkId= [68] => e1907 [69] =>          extension= [70] => .mov [71] =>     length= [72] => 30 sec [73] =>     size= [74] => 4061416 [75] =>               fileHash= [76] => 4edf4eda4766244cc6a80642ed1b14aa89530c9e [77] =>                     )
    http://www.footietour.com/haydarinna.php
    beli yerleri aldım gerisine bakarsın sen aynen

    Explode ile yapmak istemiyorum ama sonunda onunla yapacağız gibi görünüyor teşekkür ederim.
  • 08-07-2007, 11:18:50
    #11
    Üyeliği durduruldu
    orası sizin bileceğiniz şey bizden söylemesi
  • 08-07-2007, 11:23:43
    #12
    Üyeliği durduruldu
    saho adlı üyeden alıntı: mesajı görüntüle
    orası sizin bileceğiniz şey bizden söylemesi
    Eyvallah. sabah sabah güzel beyin fırtınası oldu valla
  • 08-07-2007, 11:48:27
    #13
    xml_parse dene
    PHP: xml_parse - Manual

    <?php
    $file = 'http://www.ersinacar.com/video.xml';
    $stack = array();
    
    function startTag($parser, $name, $attrs)
    {
       global $stack;
       $tag=array("name"=>$name,"attrs"=>$attrs);  
       array_push($stack,$tag);
     
    }
    
    function cdata($parser, $cdata)
    {
        global $stack,$i;
       
        if(trim($cdata))
        {    
            $stack[count($stack)-1]['cdata']=$cdata;   
        }
    }
    
    function endTag($parser, $name)
    {
       global $stack;  
       $stack[count($stack)-2]['children'][] = $stack[count($stack)-1];
       array_pop($stack);
    }
    
    $xml_parser = xml_parser_create();
    xml_set_element_handler($xml_parser, "startTag", "endTag");
    xml_set_character_data_handler($xml_parser, "cdata");
    
    $data = xml_parse($xml_parser,file_get_contents($file));
    if(!$data) {
       die(sprintf("XML error: %s at line %d",
    xml_error_string(xml_get_error_code($xml_parser)),
    xml_get_current_line_number($xml_parser)));
    }
    
    xml_parser_free($xml_parser);
    
    print("<pre>\n");
    print_r($stack);
    print("</pre>\n");
    ?>
  • 08-07-2007, 12:33:47
    #14
    Üyeliği durduruldu
    hmm bizim 2 saat kastığımız şeyi löp diye parçalıyor ne kadar ilginç

    Teşekkür.