הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   rss דינמי (https://hosts.co.il/forums/showthread.php?t=110393)

israeli 20-09-16 16:37

rss דינמי
 
היי אשמח לעזרה קטנה
אני מחפש דרך שקוד למטה שמציג את RSS יהיה מכתובות דינמי
הכוונה שבכל רענון הוא יציג RSS שונה

PHP קוד:

$rss = new DOMDocument();
    
$rss->load('http://www.hosts.co.il/RSS1.php');
    
$feed = array();
    foreach (
$rss->getElementsByTagName('item') as $node) {
        
$item = array ( 
            
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
            
'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
            
'link' => $node->getElementsByTagName('title')->item(0)->nodeValue,
            
'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
            );
        
array_push($feed$item);
    }
    
$limit 10;
    for(
$x=0;$x<$limit;$x++) {
        
$title str_replace(' & '' &amp; '$feed[$x]['title']);
        
$link $feed[$x]['link'];
        
$description $feed[$x]['desc'];
        
$date date('l F d, Y'strtotime($feed[$x]['date']));
        echo 
'<a href="'.$link.'" title="'.$title.'">'.$title.'</a><br />';
    } 



כל הזמנים הם GMT +2. הזמן כעת הוא 14:22.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ