Jump to content

Search the Community

Showing results for tags 'rss'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Informatii generale
    • Anunturi importante
    • Bine ai venit
    • Proiecte RST
  • Sectiunea tehnica
    • Exploituri
    • Challenges (CTF)
    • Bug Bounty
    • Programare
    • Securitate web
    • Reverse engineering & exploit development
    • Mobile security
    • Sisteme de operare si discutii hardware
    • Electronica
    • Wireless Pentesting
    • Black SEO & monetizare
  • Tutoriale
    • Tutoriale in romana
    • Tutoriale in engleza
    • Tutoriale video
  • Programe
    • Programe hacking
    • Programe securitate
    • Programe utile
    • Free stuff
  • Discutii generale
    • RST Market
    • Off-topic
    • Discutii incepatori
    • Stiri securitate
    • Linkuri
    • Cosul de gunoi
  • Club Test's Topics
  • Clubul saraciei absolute's Topics
  • Chernobyl Hackers's Topics
  • Programming & Fun's Jokes / Funny pictures (programming related!)
  • Programming & Fun's Programming
  • Programming & Fun's Programming challenges
  • Bani pă net's Topics
  • Cumparaturi online's Topics
  • Web Development's Forum
  • 3D Print's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber


Skype


Location


Interests


Occupation


Interests


Biography


Location

Found 1 result

  1. Nu sunt programator de php...insa acum ceva timp am incropit un script cu care preluam feed-ul RSS de pe agerpress de la adresa: Agerpress RSS ... acum s-a schimbat ceva si nu mai functioneaza. Poate ma ajuta cineva. Codul este urmatorul: <?php setlocale(LC_ALL, array('ro_RO.ISO8859-1', 'ro_RO.ISO-8859-1', 'ro', 'ro_RO', 'rom', 'romanian')); $xml=simplexml_load_file("https://www.agerpres.ro/home.rss"); $cnt = count($xml->channel->item); $count = 10; //Numarul de stiri afisate for($i=0; $i<$cnt; $i++) { $url = $xml->channel->item[$i]->link; $titlu = $xml->channel->item[$i]->title; $data = $xml->channel->item[$i]->pubDate; $imagine = $xml->channel->item[$i]->description->img->_src; $content = $xml->channel->item[$i]->description->__text; if($count > 0){ $date = date('d.m.Y - H:i', strtotime($data)); echo '<div>'; echo '<div>'; echo '<img src='.$imagine.' alt="">'; echo '</div>'; echo '<h4><a>'.$titlu.'</a></h4>'; echo '<div>'; echo '<span>publicat la '.$date.'</span>'; echo '</div>'; echo '<p>'.$content.'</p>'; echo '<a href="'.$url.'" >Citeşte</a>'; echo '</div>'; } $count--; } ?> Multumesc...
×
×
  • Create New...