View Single Post
ישן 12-05-09, 07:55   # 1
possible
חבר בקהילה
 
מיני פרופיל
תאריך הצטרפות: Feb 2008
הודעות: 121

possible לא מחובר  

עזרה| שליפת מידע מהRSS של הוסטס

אוקיי אז בניתי קוד ששולף את כותרת הנושא ואת הלינק אבל הקוד פועל על כל אתר שפעלתי חוץ מהוסטס.

הינה הקוד:
PHP קוד:
<?php
               $objDOM 
= new DOMDocument();
                
$objDOM->load("http://www.hosts.co.il/forums/external.php?type=RSS2");
                
$items $objDOM->getElementsByTagName("item");
                foreach (
$items as $value)
                {
                    
$titles $value->getElementsByTagName("title");
                    
$title $titles->item(0)->nodeValue;

                    
$links $value->getElementsByTagName("link");
                    
$link $links->item(0)->nodeValue;
                    echo 
"<a href=\"{$link}\">{$title}</a><br />";
                }
?>
אצלי באתר כשניסיתי את זה זה העביר אותי לדף שרשום בו את זה:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@blog.float.co.il and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

יכול להיות שזה בעיה בשרת שלי?(אני מאוחסן אצל DREAMHOST)

תודה לעוזרים
  Reply With Quote